Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amadawn opened this issue Feb 10, 2014 · 1 comment
Open

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

amadawn opened this issue Feb 10, 2014 · 1 comment

Comments

@amadawn
Copy link

amadawn commented Feb 10, 2014

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
Copy link
Member

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

AngelEzquerra added a commit to AngelEzquerra/docopt.c that referenced this issue Feb 14, 2014
When the [options] shortcut is detected on the usage section, we use the
contents of the options section to get the full list of options, rather
than
just getting those options that are explicitly mentioned on the usage
section.
rkday pushed a commit to rkday/docopt.c that referenced this issue Apr 24, 2016
When the [options] shortcut is detected on the usage section, we use the
contents of the options section to get the full list of options, rather
than
just getting those options that are explicitly mentioned on the usage
section.
rkday pushed a commit to rkday/docopt.c that referenced this issue Apr 24, 2016
When the [options] shortcut is detected on the usage section, we use the
contents of the options section to get the full list of options, rather
than
just getting those options that are explicitly mentioned on the usage
section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants