Skip to content

Commit

Permalink
Fix(cli): Improved --help flag
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtrannhat committed Sep 2, 2023
1 parent 5fb50be commit 79daa18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(["-"]),
)
Expand Down

0 comments on commit 79daa18

Please sign in to comment.