docopt / docopt.c

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

docopt.c does not support docopt's [options] shortcut #22

Open amadawn opened 10 years ago

amadawn commented 10 years ago

The docopt documentation says:

"[options]" is a shortcut that allows to avoid listing all options (from list of options with descriptions) in a pattern. For example:

Usage: my_program [options]

--all List everything. --long Long output. --human-readable Display in human-readable format.

is equivalent to:

Usage: my_program [--all --long --human-readable]

--all List everything. --long Long output. --human-readable Display in human-readable format.

However, it seems that docopt.c ignores this shortcut. It would be really nice if it didn't.

keleshev commented 10 years ago

Unfortunately docopt.c supports only a subset of all features right now.