fix: print usage when no arguments are passed #2

This commit is contained in:
Christoph J. Scherr 2024-05-12 01:05:48 +02:00
parent 3fd52c19dd
commit 5a780f83e8
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ struct Cli {
#[arg(short, long)] #[arg(short, long)]
/// format to octal /// format to octal
oct: bool, oct: bool,
#[clap(value_parser=maybe_hex::<Num>)] #[clap(value_parser=maybe_hex::<Num>, required=true)]
/// at least one number that should be formatted /// at least one number that should be formatted
/// ///
/// supports either base 10 or base 16 inputs (with 0xaaaa) /// supports either base 10 or base 16 inputs (with 0xaaaa)