From 24a56fd617b4e41479868682944762f73508c9eb Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Fri, 8 Feb 2013 01:18:16 -0800 Subject: [PATCH] usage message now goes to STDOUT if --help given --- bin/feedgnuplot | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index f0da7f4..224d412 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -109,11 +109,18 @@ sub interpretCommandline 'histogram=s@', 'binwidth=f', 'histstyle=s', 'terminal=s', 'extraValuesPerPoint=i', 'help', 'dump', - 'geometry=s') or pod2usage(1); + 'geometry=s') or pod2usage( -exitval => 1, + -verbose => 1, # synopsis and args + -output => \*STDERR ); + # handle various cmdline-option errors if ( $options->{help} ) - { pod2usage(0); } + { + pod2usage( -exitval => 0, + -verbose => 1, # synopsis and args + -output => \*STDOUT ); + } # no global style if one isn't given $options->{curvestyleall} = '' unless defined $options->{curvestyleall};