aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-03-26 01:22:12 -0400
committerJesse Luehrs <doy@tozt.net>2023-03-26 01:22:12 -0400
commit4c38db5e4822a4fb117c1b4734485f37b826c273 (patch)
tree52919bad82d91d8bdd61fa43102518c7e4690ec8
parent93d0669b567f7643116d6c12076cfba881acc45b (diff)
downloadfancy-prompt-4c38db5e4822a4fb117c1b4734485f37b826c273.tar.gz
fancy-prompt-4c38db5e4822a4fb117c1b4734485f37b826c273.zip
actually parse the value
-rw-r--r--src/args.rs1
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();