commander
commander copied to clipboard
Commander option parser ported to C - simple API, auto-generated --help
This patch allows users to omit the short version of an option. Closes #24
Hi, If an user want to omit the short version of a option (defining as empty string), the help ended up with a `,` at the beginning of the option's...
When use `--` to supports negative number, it only support one digit like `-5`, and not support `-500`. it Will treat `-500` as short flag. So i just make the...
Not sure why 56deac2c3c3fe0d33d33813715dfee5f02039a97 happened, but it broke the makefile: ``` stephen@sm:~/repos/commander$ uname -a Linux sm 3.2.0-32-virtual #51-Ubuntu SMP Wed Sep 26 21:53:42 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux stephen@sm:~/repos/commander$...
Support sub command now :)
to append to what's already there, for documenting sub-commands etc
Closes #19.
I wrote some unit tests for commander.c. I had to make `exit()` a member function of `struct command` in order to mock it, and I'm also using setjmp/longjmp to stop...