From 67da57ccc7c45fe0c712349141a6c6046399122e Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Sat, 22 Oct 2016 13:29:17 +0200 Subject: [PATCH] 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 --- src/parallel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parallel b/src/parallel index b6b97645..fd79a7e4 100755 --- a/src/parallel +++ b/src/parallel @@ -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'; }