From c83dc67039e96465d0f7699c2227721b43b2897f Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 24 Jun 2024 17:17:29 -0400 Subject: [PATCH] Remove pointless `help` setting This does not affect the `--help` command-line argument. The `help` setting didn't do anything useful, and it didn't make sense to set `help=1` in the config file (or pass `--options=help=1`), so this removal is unlikely to affect anyone. If the setting does exist, the user will get a warning and the setting will be ignored. --- ddclient.in | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ddclient.in b/ddclient.in index 2e96a0d..99edd71 100755 --- a/ddclient.in +++ b/ddclient.in @@ -614,7 +614,6 @@ our %variables = ( 'debug' => setv(T_BOOL, 0, 0, 0, undef), 'verbose' => setv(T_BOOL, 0, 0, 0, undef), 'quiet' => setv(T_BOOL, 0, 0, 0, undef), - 'help' => setv(T_BOOL, 0, 0, 0, undef), 'test' => setv(T_BOOL, 0, 0, 0, undef), 'postscript' => setv(T_POSTS, 0, 0, undef, undef), @@ -1291,11 +1290,6 @@ sub main { $now = time; $result = 'OK'; %opt = %saved_opt; - if (opt('help')) { - *STDERR = *STDOUT; - printf("Help found"); - } - read_config($opt{'file'} // default('file'), \%config, \%globals); init_config(); read_recap(opt('cache'), \%recap);