feat(cli): introduce --version flags and a dedicated --continuous option with new short aliases

This commit is contained in:
Nils Andreas Svee committed 2026-10-21 13:42:47 +07:00
1 parent 9e8559d713
commit 7d640793b6
5 files changed
+47 -14

No files matched your search

+2 -2
View File
@@ -19,11 +19,11 @@ pub struct CommonClientArgs {
pub dual_stack: bool,
/// Positive probe interval (e.g. 2.5s, 1m30s, 500us, 100ns, 1h).
#[arg(long, default_value = "1s", value_parser = parse_duration)]
#[arg(short = 'i', long, default_value = "1s", value_parser = parse_duration)]
pub interval: Duration,
/// UDP payload length.
#[arg(long, default_value_t = 0, value_parser = parse_length)]
#[arg(short = 'l', long, default_value_t = 0, value_parser = parse_length)]
pub length: u32,
// Decode during configuration preparation so Clap cannot echo rejected keys.