docopt/docopt.c

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

Opened this issue · 1 comments

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.

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