Fix(cli): Improved --help flag
This commit is contained in:
parent
5fb50be101
commit
79daa18333
@ -10,10 +10,10 @@ Arguments:
|
||||
[FILE]... Input file(s) [default: -] [default: -]
|
||||
|
||||
Options:
|
||||
-n Number lines
|
||||
-b Number nonblank lines
|
||||
-h, --help Print help
|
||||
-V, --version Print version
|
||||
-n, --number Number lines
|
||||
-b, --number-nonblank Number nonblank lines
|
||||
-h, --help Print help
|
||||
-V, --version Print version
|
||||
```
|
||||
|
||||
## Build
|
||||
|
@ -29,7 +29,7 @@ pub fn get_args() -> MyResult<Config> {
|
||||
.arg(
|
||||
Arg::new("file")
|
||||
.value_name("FILE")
|
||||
.help("Input file(s) [default: -]")
|
||||
.help("Input file(s)")
|
||||
.num_args(1..)
|
||||
.default_values(["-"]),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user