From b69a61fa775431d1848978081a3a0807769fdb9b Mon Sep 17 00:00:00 2001 From: Ral Date: Tue, 28 Mar 2023 00:36:11 +0200 Subject: [PATCH] Print help if no arguments given --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index 9b07992..fff65ea 100644 --- a/src/args.rs +++ b/src/args.rs @@ -8,7 +8,7 @@ fn hex_address(a: &str) -> Result { } #[derive(Parser, Debug)] -#[command(version, about, long_about = None, next_line_help = true)] +#[command(version, about, long_about = None, next_line_help = true, arg_required_else_help(true))] pub struct Args { /// The linux i2c device file, something like /dev/i2c-*. #[arg(short, long)]