From 79daa18333aaf70e449274a3c2715c46a717a3b8 Mon Sep 17 00:00:00 2001 From: minhtrannhat Date: Sat, 2 Sep 2023 14:05:24 -0400 Subject: [PATCH] Fix(cli): Improved --help flag --- README.md | 8 ++++---- src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 89db5c1..3441752 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/lib.rs b/src/lib.rs index 6b34b7c..90d0adf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -29,7 +29,7 @@ pub fn get_args() -> MyResult { .arg( Arg::new("file") .value_name("FILE") - .help("Input file(s) [default: -]") + .help("Input file(s)") .num_args(1..) .default_values(["-"]), )