From 5a780f83e8591dbc9036e59e2e183c5bdea6b030 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sun, 12 May 2024 01:05:48 +0200 Subject: [PATCH] fix: print usage when no arguments are passed #2 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1e4f86a..50fd6e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ struct Cli { #[arg(short, long)] /// format to octal oct: bool, - #[clap(value_parser=maybe_hex::)] + #[clap(value_parser=maybe_hex::, required=true)] /// at least one number that should be formatted /// /// supports either base 10 or base 16 inputs (with 0xaaaa)