
Build a tiny getopt-style flag parser that walks argv left to right and announces each recognised short option as soon as it appears.
./parse_flags -lExpected result
Option lFor your own tracking. Tests grade your code.
./parse_flags -p shipit -lExpected result
Option p with arg shipit
Option l./parse_flags -l deploy.log -cExpected result
Option lExpected files
parse_flags.cAllowed functions
write
Build a tiny getopt-style flag parser that walks argv left to right and announces each recognised short option as soon as it appears.
./parse_flags -lExpected result
Option lFor your own tracking. Tests grade your code.
./parse_flags -p shipit -lExpected result
Option p with arg shipit
Option l./parse_flags -l deploy.log -cExpected result
Option lExpected files
parse_flags.cAllowed functions
write
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.
v0.40: Create exercises. Challenge the community.
Meet Studio →