From 197f75c7c5d0b4dab1f92a739dc1be0d90f5b27d Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 16 Aug 2026 20:55:33 +0200 Subject: feat: Add support for default target and implement robust target resolution Introduces a new `--default-target` argument to allow specifying a default host address. In case that target isn't defined, as a configuration option. --- src/args.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs index 7004791..6fdca59 100644 --- a/src/args.rs +++ b/src/args.rs @@ -37,6 +37,10 @@ pub struct Args { #[arg(short = 'r', long = "remainder", action = ArgAction::SetTrue)] pub remainder: bool, + /// Default target, if none is specified + #[arg(long = "default-target", value_name = "default_target")] + pub default_target: Option, + /// Target IP address #[arg(value_name = "target")] pub target: Option, -- cgit v1.3-2-g11bf