Skip to content

Commit 945b00a

Browse files
committed
docs: fixes panic in 14_groups example
Closes #295
1 parent edec5ae commit 945b00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/14_groups.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn main() {
3636
// Create a group, make it required, and add the above arguments
3737
.arg_group(ArgGroup::with_name("vers")
3838
.required(true)
39-
.add_all(&["vers", "major", "minor", "patch"]))
39+
.add_all(&["ver", "major", "minor", "patch"]))
4040
// Arguments can also be added to a group individually, these two arguments
4141
// are part of the "input" group which is not required
4242
.arg(Arg::from_usage("[INPUT_FILE] 'some regular input'").group("input"))

0 commit comments

Comments
 (0)