Skip to content

Commit

Permalink
Update help text for --top
Browse files Browse the repository at this point in the history
  • Loading branch information
tasnimAlam committed Aug 28, 2021
1 parent e4de0d1 commit 7081449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ FLAGS:
OPTIONS:
-o, --output <output> Output file
-s, --search <search> Search specific word
-t, --top <top> [default: 10]
-t, --top <top> Top result limit [default: 10]

ARGS:
<input> Input file
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use prettytable::Table;
about = "A program that displays word count of a file."
)]
pub struct Opt {
/// Top result limit
#[structopt(short = "t", long = "--top", default_value = "10")]
top: usize,

Expand Down

0 comments on commit 7081449

Please sign in to comment.