[SCM] Feedgnuplot. Pipe-oriented frontend to Gnuplot. branch, debian, updated. debian/1.23-2-15-g184102a

Dima Kogan dima at secretsauce.net
Fri Feb 8 10:32:57 UTC 2013


The following commit has been merged in the debian branch:
commit 24a56fd617b4e41479868682944762f73508c9eb
Author: Dima Kogan <dima at secretsauce.net>
Date:   Fri Feb 8 01:18:16 2013 -0800

    usage message now goes to STDOUT if --help given

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};

-- 
Feedgnuplot. Pipe-oriented frontend to Gnuplot.



More information about the debian-science-commits mailing list