Fix(cli): Improved --help flag

This commit is contained in:
minhtrannhat 2023-09-02 14:05:24 -04:00
parent 5fb50be101
commit 79daa18333
Signed by: minhtrannhat
GPG Key ID: E13CFA85C53F8062
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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(["-"]),
)