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

YAML default_value doesn’t work #528

Closed
calebmer opened this issue Jun 11, 2016 · 2 comments
Closed

YAML default_value doesn’t work #528

calebmer opened this issue Jun 11, 2016 · 2 comments
Labels
C-bug Category: Updating dependencies
Milestone

Comments

@calebmer
Copy link

First off, thanks for the amazing library! By far the best CLI helper tool I’ve seen across all the ecosystems I’ve worked in.

Currently I’m using a YAML configuration file to define my arguments/subcommands. I tried to set the default_value using this method and it panicked with the following error:

thread '<main>' panicked at 'Unknown Arg setting 'default_value' in YAML file for arg 'n'', /Users/calebmer/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/clap-2.5.2/src/args/arg.rs:226
Process didn't exit successfully: `target/debug/accelerate` (exit code: 101)
@kbknapp
Copy link
Member

kbknapp commented Jun 12, 2016

Whoops! Forgot to include that. It'll be fixed on the next release! Thanks for pointing this out 👍

@kbknapp kbknapp added C-bug Category: Updating dependencies P1: urgent labels Jun 12, 2016
@kbknapp kbknapp added this to the 2.6.0 milestone Jun 12, 2016
@kbknapp
Copy link
Member

kbknapp commented Jun 13, 2016

This is fixed with #530

@homu homu closed this as completed in e468faf Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

2 participants