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

Support registering `default` and `options` for positional/assoc args #2556

Merged
merged 6 commits into from Mar 11, 2016

Conversation

@danielbachhuber
Copy link
Member

commented Mar 11, 2016

default fills the value when it isn't set. options validates the
filled value against an enum of values.

YAML for the win:

--volume=<number>
: Sets the volume.

---
default: 10

---

Fixes #1293
Fixes #1294

Support registering `default` and `options` for positional/assoc args
`default` fills the value when it isn't set. `options` validates the
filled value against an enum of values.

YAML for the win:
```
--volume=<number>
: Sets the volume.
---
default: 10
---
```

@danielbachhuber danielbachhuber added this to the 0.23.0 milestone Mar 11, 2016

danielbachhuber added a commit that referenced this pull request Mar 11, 2016
Merge pull request #2556 from wp-cli/1293-default-value
Support registering `default` and `options` for positional/assoc args

@danielbachhuber danielbachhuber merged commit ddbe997 into master Mar 11, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@danielbachhuber danielbachhuber deleted the 1293-default-value branch Mar 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.