From 05304622ea43ab2fcce8c6b33c2bfe0242e28508 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 13 May 2024 17:38:20 -0400 Subject: [PATCH] Add context to `--use` deprecation notices in `--help` --- ddclient.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ddclient.in b/ddclient.in index 3abc57e..119be6f 100755 --- a/ddclient.in +++ b/ddclient.in @@ -430,14 +430,14 @@ our %builtinfw = ( my %ip_strategies = ( 'disabled' => ": do not use a deprecated method to obtain an IP address for this host", 'no' => ": deprecated, see '--use=disabled'", - 'ip' => ": deprecated, see '--usev4' and '--usev6'", - 'web' => ": deprecated, see '--usev4' and '--usev6'", - 'fw' => ": deprecated, see '--usev4' and '--usev6'", - 'if' => ": deprecated, see '--usev4' and '--usev6'", - 'cmd' => ": deprecated, see '--usev4' and '--usev6'", - 'cisco' => ": deprecated, see '--usev4' and '--usev6'", - 'cisco-asa' => ": deprecated, see '--usev4' and '--usev6'", - map({ $_ => ": deprecated, see '--usev4' and '--usev6'"; } keys(%builtinfw)), + 'ip' => ": deprecated, see '--usev4=ipv4' and '--usev6=ipv6'", + 'web' => ": deprecated, see '--usev4=webv4' and '--usev6=webv6'", + 'fw' => ": deprecated, see '--usev4=fwv4' and '--usev6=fwv6'", + 'if' => ": deprecated, see '--usev4=ifv4' and '--usev6=ifv6'", + 'cmd' => ": deprecated, see '--usev4=cmdv4' and '--usev6=cmdv6'", + 'cisco' => ": deprecated, see '--usev4=cisco'", + 'cisco-asa' => ": deprecated, see '--usev4=cisco-asa'", + map({ $_ => ": deprecated, see '--usev4=$_'"; } keys(%builtinfw)), ); sub ip_strategies_usage {