From 40444902e0cc6e42a33dd3cade3ee9199d315873 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 16 Aug 2026 22:09:52 +0200 Subject: Add the default help option of clap --- src/args.rs | 3 +-- 1 file changed, 1 insertion(+), 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, - /// 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, -- cgit v1.3-2-g11bf