From 3badf920b6fee9a17ea3d1e007c5b4a27a45cda4 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 19 Sep 2013 15:49:30 -0700 Subject: [PATCH] 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};