GNU Coding Standards says: The standard --help option should output

brief documentation for how to invoke the program, on standard output,
then exit successfully.
https://www.gnu.org/prep/standards/standards.html#g_t_002d_002dhelp
This commit is contained in:
Ole Tange 2016-10-22 13:29:17 +02:00
parent ec3767fd5e
commit 67da57ccc7

View file

@ -996,7 +996,7 @@ sub parse_options {
if(defined $opt::timeout) { $Global::timeoutq = TimeoutQueue->new($opt::timeout); }
if(defined $opt::tmpdir) { $ENV{'TMPDIR'} = $opt::tmpdir; }
$opt::nice ||= 0;
if(defined $opt::help) { die_usage(); }
if(defined $opt::help) { usage(); exit(0); }
if(defined $opt::sqlandworker) { $opt::sqlmaster = $opt::sqlworker = $opt::sqlandworker; }
if(defined $opt::tmuxpane) { $opt::tmux = $opt::tmuxpane; }
if(defined $opt::colsep) { $Global::trim = 'lr'; }