mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
Auto merge of #296 - kbknapp:issue-295, r=kbknapp
docs: fixes panic in 14_groups example Closes #295
This commit is contained in:
commit
dcfe9652ee
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ fn main() {
|
|||
// Create a group, make it required, and add the above arguments
|
||||
.arg_group(ArgGroup::with_name("vers")
|
||||
.required(true)
|
||||
.add_all(&["vers", "major", "minor", "patch"]))
|
||||
.add_all(&["ver", "major", "minor", "patch"]))
|
||||
// Arguments can also be added to a group individually, these two arguments
|
||||
// are part of the "input" group which is not required
|
||||
.arg(Arg::from_usage("[INPUT_FILE] 'some regular input'").group("input"))
|
||||
|
|
Loading…
Reference in a new issue