From 368f4c99ed22ca9c30e60f7cc86a77553d745117 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 6 Aug 2026 06:55:55 +0200 Subject: Remove ttl and add main loop --- src/args.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index fb5d6c1..7004791 100644 --- a/src/args.rs +++ b/src/args.rs @@ -17,9 +17,9 @@ pub struct Args { #[arg(short = 'I', value_name = "interface")] pub interface: Option, - /// number of seconds to wait between 2 pings - #[arg(short = 'i', value_name = "seconds")] - pub seconds: Option, + /// number of milliseconds to wait between 2 pings + #[arg(short = 'i', value_name = "milliseconds")] + pub interval: Option, /// the Time-to-live #[arg(short = 't', long = "ttl", value_name = "TTL")] @@ -29,12 +29,12 @@ pub struct Args { #[arg(short = 's', long = "stats", action = ArgAction::SetTrue)] pub stats: bool, - /// Print the Help line - #[arg(short = 'H', action = ArgAction::Help, required = false)] - pub help: Option, + /// Print the legende line + #[arg(short = 'l', long = "legende", action = ArgAction::SetTrue)] + pub legende: bool, /// Print the remainder line - #[arg(short = 'l', long = "remainder", action = ArgAction::SetTrue)] + #[arg(short = 'r', long = "remainder", action = ArgAction::SetTrue)] pub remainder: bool, /// Target IP address -- cgit v1.3-2-g11bf