diff options
| author | ache <ache@ache.one> | 2026-08-16 22:09:52 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2026-08-16 22:09:52 +0200 |
| commit | 40444902e0cc6e42a33dd3cade3ee9199d315873 (patch) | |
| tree | d754a3f80910158628e74bbbd80392a4b9f25cce | |
| parent | Disable clippy warning on byte groupings (diff) | |
Add the default help option of clap
| -rw-r--r-- | src/args.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs index fe74f5e..349c07c 100644 --- a/src/args.rs +++ b/src/args.rs @@ -3,7 +3,6 @@ use clap::{ArgAction, Parser}; #[derive(Parser, Debug)] #[command(name = "ping")] #[command(about = "A ping program")] -#[command(disable_help_flag = true)] pub struct Args { /// Beep on each ping #[arg(short = 'a', long = "beep", action = ArgAction::SetTrue)] @@ -17,7 +16,7 @@ pub struct Args { #[arg(short = 'I', value_name = "interface")] pub interface: Option<String>, - /// number of milliseconds to wait between 2 pings + /// The number of milliseconds to wait between 2 pings #[arg(short = 'i', value_name = "milliseconds")] pub interval: Option<u32>, |