-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Minimal yaml not working #708
Labels
C-bug
Category: Updating dependencies
Comments
This is a typo in the examples! Thanks for pointing it out! The number should be enclosed in quotes. |
kbknapp
added
C-bug
Category: Updating dependencies
P1: urgent
A-docs
Area: documentation, including docs.rs, readme, examples, etc...
and removed
A-docs
Area: documentation, including docs.rs, readme, examples, etc...
labels
Oct 27, 2016
mvaude
pushed a commit
to myCrates/clap-rs
that referenced
this issue
Oct 27, 2016
change yaml example to be consistent with its configuration fix clap-rs#707, clap-rs#708
I'm having an issue reproducing this - could you post the source you're using? |
I used the example that can be seen in the README.md name: myapp
version: 1.0
author: Kevin K. <kbknapp@gmail.com>
about: Does awesome things
args:
- config:
short: c
long: config
value_name: FILE
help: Sets a custom config file
takes_value: true
- INPUT:
help: Sets the input file to use
required: true
index: 1
- verbose:
short: v
multiple: true
help: Sets the level of verbosity
subcommands:
- test:
about: controls testing features
version: 1.3
author: Someone E. <someone_else@other.com>
args:
- debug:
short: d
help: print debug information The example should probably be (note the version entries): name: myapp
version: "1.0"
author: Kevin K. <kbknapp@gmail.com>
about: Does awesome things
args:
- config:
short: c
long: config
value_name: FILE
help: Sets a custom config file
takes_value: true
- INPUT:
help: Sets the input file to use
required: true
index: 1
- verbose:
short: v
multiple: true
help: Sets the level of verbosity
subcommands:
- test:
about: controls testing features
version: "1.3"
author: Someone E. <someone_else@other.com>
args:
- debug:
short: d
help: print debug information |
Ah ok thanks! I was looking at the |
kbknapp
added a commit
that referenced
this issue
Oct 29, 2016
kbknapp
added a commit
that referenced
this issue
Oct 29, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to replicate the first yaml example in the docs and it didn't work out as expected. This should probably get fixed, it doesn't make a good impression.
The text was updated successfully, but these errors were encountered: