docopt / docopt.c

C-code generator for docopt language.
MIT License
318 stars 46 forks source link

Add support for position arguments #47

Open tony-jacobs opened 1 year ago

tony-jacobs commented 1 year ago

I wanted this type of usage pattern to work:

myApp <filename> [--debug=LEVEL]

So, I enabled the argument processing. For some reason, the iteration included argv[0] (the launching program), so I skip that. I presume that bug is why command processing didn't work before either, but I don't have a use case for command processing, and didn't investigate that any further.