mirror of
https://github.com/clap-rs/clap
synced 2025-01-20 16:43:54 +00:00
Fix the --nb-cars
option in the example (#85)
This commit is contained in:
parent
c1ec5f9732
commit
ce62bcaa06
1 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ FLAGS:
|
||||||
-v, --verbose Verbose mode
|
-v, --verbose Verbose mode
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
-c, --car <car> Number of car
|
-c, --nb-cars <nb_cars> Number of cars
|
||||||
-l, --level <level>... admin_level to consider
|
-l, --level <level>... admin_level to consider
|
||||||
-o, --output <output> Output file
|
-o, --output <output> Output file
|
||||||
-s, --speed <speed> Set speed [default: 42]
|
-s, --speed <speed> Set speed [default: 42]
|
||||||
|
@ -98,8 +98,8 @@ ARGS:
|
||||||
<FILE>... Files to process
|
<FILE>... Files to process
|
||||||
$ ./basic -o foo.txt
|
$ ./basic -o foo.txt
|
||||||
Opt { debug: false, verbose: 0, speed: 42, output: "foo.txt", car: None, level: [], files: [] }
|
Opt { debug: false, verbose: 0, speed: 42, output: "foo.txt", car: None, level: [], files: [] }
|
||||||
$ ./basic -o foo.txt -dvvvs 1337 -l alice -l bob --car 4 bar.txt baz.txt
|
$ ./basic -o foo.txt -dvvvs 1337 -l alice -l bob --nb-cars 4 bar.txt baz.txt
|
||||||
Opt { debug: true, verbose: 3, speed: 1337, output: "foo.txt", car: Some(4), level: ["alice", "bob"], files: ["bar.txt", "baz.txt"] }
|
Opt { debug: true, verbose: 3, speed: 1337, output: "foo.txt", nb_cars: Some(4), level: ["alice", "bob"], files: ["bar.txt", "baz.txt"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
## Why
|
## Why
|
||||||
|
|
Loading…
Reference in a new issue