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:
parent
268353af35
commit
b69a61fa77
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ fn hex_address(a: &str) -> Result<u16, std::num::ParseIntError> {
|
|||
}
|
||||
|
||||
#[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)]
|
||||
|
|
Loading…
Reference in a new issue