[Bps-public-commit] r15270 - in Prophet/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Wed Aug 20 04:08:08 EDT 2008
Author: sartak
Date: Wed Aug 20 04:08:07 2008
New Revision: 15270
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/CLI.pm
Log:
r69834 at onn: sartak | 2008-08-20 04:07:18 -0400
Rename $sep to $collecting_props for readability
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:07 2008
@@ -250,17 +250,17 @@
$self->set_arg(id => pop @primary)
if @primary && $primary[-1] =~ /^(?:\d+|[0-9a-f]{8}\-)/i;
- my $sep = 0;
+ my $collecting_props = 0;
$self->primary_commands( \@primary );
my $cmp_re = $self->cmp_regex;
while (my $name = shift @ARGV) {
die "$name doesn't look like --argument"
- if $sep == 0 && $name !~ /^--/;
+ if !$collecting_props && $name !~ /^--/;
if ($name eq '--' || $name eq '--props') {
- ++$sep;
+ $collecting_props = 1;
next;
}
@@ -291,7 +291,7 @@
}
}
- if ($sep == 1) {
+ if ($collecting_props) {
$self->add_to_prop_set({
prop => $name,
cmp => $cmp,
More information about the Bps-public-commit
mailing list