Skip to content

Commit 2c86c8e

Browse files
messensekbknapp
authored andcommitted
Make -- mandatory for the slop example
1 parent e27a6ff commit 2c86c8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/22_stop_parsing_with_--.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ fn main() {
1212
.short("p")
1313
.takes_value(true))
1414
.arg(Arg::with_name("slop")
15-
.multiple(true))
15+
.multiple(true)
16+
.last(true))
1617
.get_matches();
1718

1819

0 commit comments

Comments
 (0)