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.
This commit is contained in:
Richard Hansen 2024-06-24 17:17:29 -04:00
parent b4c4b5dc54
commit c83dc67039

View file

@ -614,7 +614,6 @@ our %variables = (
'debug' => setv(T_BOOL, 0, 0, 0, undef), 'debug' => setv(T_BOOL, 0, 0, 0, undef),
'verbose' => setv(T_BOOL, 0, 0, 0, undef), 'verbose' => setv(T_BOOL, 0, 0, 0, undef),
'quiet' => 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), 'test' => setv(T_BOOL, 0, 0, 0, undef),
'postscript' => setv(T_POSTS, 0, 0, undef, undef), 'postscript' => setv(T_POSTS, 0, 0, undef, undef),
@ -1291,11 +1290,6 @@ sub main {
$now = time; $now = time;
$result = 'OK'; $result = 'OK';
%opt = %saved_opt; %opt = %saved_opt;
if (opt('help')) {
*STDERR = *STDOUT;
printf("Help found");
}
read_config($opt{'file'} // default('file'), \%config, \%globals); read_config($opt{'file'} // default('file'), \%config, \%globals);
init_config(); init_config();
read_recap(opt('cache'), \%recap); read_recap(opt('cache'), \%recap);