From 5491339de63d16c20296ce61538f3ce765f7be98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kr=C3=BCger?= Date: Fri, 5 Nov 2010 02:24:15 +0100 Subject: [PATCH] jobd: make --help give more details MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Turns out auto_help prints only the synopsis, when for full help we actually want more than that. Signed-off-by: Jan Krüger --- jobd/jobd.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jobd/jobd.pl b/jobd/jobd.pl index 353c3d9..5b3ed8b 100755 --- a/jobd/jobd.pl +++ b/jobd/jobd.pl @@ -250,8 +250,9 @@ sub fatal($) { ######### Main {{{1 # Parse options -Getopt::Long::Configure('bundling', 'auto_help'); +Getopt::Long::Configure('bundling'); my $parse_res = GetOptions( + 'help|?' => sub { pod2usage(-verbose => 1, -exitval => 0); }, 'quiet|q' => \$quiet, 'progress|P' => \$progress, 'kill-after|k=i' => \$kill_after, -- 2.11.4.GIT