diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-03-26 01:22:12 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-03-26 01:22:12 -0400 |
commit | 4c38db5e4822a4fb117c1b4734485f37b826c273 (patch) | |
tree | 52919bad82d91d8bdd61fa43102518c7e4690ec8 | |
parent | 93d0669b567f7643116d6c12076cfba881acc45b (diff) | |
download | fancy-prompt-4c38db5e4822a4fb117c1b4734485f37b826c273.tar.gz fancy-prompt-4c38db5e4822a4fb117c1b4734485f37b826c273.zip |
actually parse the value
-rw-r--r-- | src/args.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/args.rs b/src/args.rs index f0c65d0..3e12e7a 100644 --- a/src/args.rs +++ b/src/args.rs @@ -21,6 +21,7 @@ pub fn parse() -> CommandLineOptions { .arg( clap::Arg::new("error-code") .value_name("ERROR_CODE") + .value_parser(clap::value_parser!(u8)) .help("The error code of the previously run command"), ) .get_matches(); |