From 4c38db5e4822a4fb117c1b4734485f37b826c273 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 26 Mar 2023 01:22:12 -0400 Subject: actually parse the value --- src/args.rs | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3-54-g00ecf