1
0
Fork 0
mirror of https://codeberg.org/ral/rwedid.git synced 2024-08-16 09:59:49 +02:00

Print help if no arguments given

This commit is contained in:
Ral 2023-03-28 00:36:11 +02:00 committed by Undefined
parent 268353af35
commit b69a61fa77

View file

@ -8,7 +8,7 @@ fn hex_address(a: &str) -> Result<u16, std::num::ParseIntError> {
} }
#[derive(Parser, Debug)] #[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 { pub struct Args {
/// The linux i2c device file, something like /dev/i2c-*. /// The linux i2c device file, something like /dev/i2c-*.
#[arg(short, long)] #[arg(short, long)]