[Bps-public-commit] r15271 - in Prophet/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Wed Aug 20 04:08:17 EDT 2008
Author: sartak
Date: Wed Aug 20 04:08:17 2008
New Revision: 15271
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/CLI.pm
Log:
r69835 at onn: sartak | 2008-08-20 04:08:01 -0400
Only consider comparators if we're collecting props
Modified: Prophet/trunk/lib/Prophet/CLI.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI.pm (original)
+++ Prophet/trunk/lib/Prophet/CLI.pm Wed Aug 20 04:08:17 2008
@@ -281,13 +281,15 @@
# but wait! does the value look enough like a comparator? if so,
# shift off another one (if we can)
- if ($val =~ /^(?:$cmp_re)$/ && @ARGV && $ARGV[0] !~ /^--/) {
- $cmp = $val;
- $val = shift @ARGV;
- }
- else {
- # perhaps they said "foo =~bar"..
- $cmp = $1 if $val =~ s/^($cmp_re)//;
+ if ($collecting_props) {
+ if ($val =~ /^(?:$cmp_re)$/ && @ARGV && $ARGV[0] !~ /^--/) {
+ $cmp = $val;
+ $val = shift @ARGV;
+ }
+ else {
+ # perhaps they said "foo =~bar"..
+ $cmp = $1 if $val =~ s/^($cmp_re)//;
+ }
}
}
More information about the Bps-public-commit
mailing list