[feedgnuplot] 09/42: explicitly fail if we try --stream --xlen --xmin

Dima Kogan dkogan-guest at alioth.debian.org
Sun Oct 20 08:04:03 UTC 2013


This is an automated email from the git hooks/post-receive script.

dkogan-guest pushed a commit to tag v1.25
in repository feedgnuplot.

commit 3badf920b6fee9a17ea3d1e007c5b4a27a45cda4
Author: Dima Kogan <dima at secretsauce.net>
Date:   Thu Sep 19 15:49:30 2013 -0700

    explicitly fail if we try --stream --xlen --xmin
---
 bin/feedgnuplot |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/feedgnuplot b/bin/feedgnuplot
index 905af79..cb9a411 100755
--- a/bin/feedgnuplot
+++ b/bin/feedgnuplot
@@ -276,6 +276,13 @@ sub interpretCommandline
     exit -1;
   }
 
+  if($options{stream} && $options{xlen} &&
+     ( defined $options{xmin} || defined $options{xmax}))
+  {
+    print STDERR "With --stream and --xlen the X bounds are set, so neither --xmin nor --xmax make sense\n";
+    exit -1;
+  }
+
   # --xlen implies an order to the data, so I force monotonicity
   $options{monotonic} = 1 if defined $options{xlen};
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feedgnuplot.git



More information about the debian-science-commits mailing list