[cig-commits] r6260 - cs/pythia/trunk/pyre/applications
leif at geodynamics.org
leif at geodynamics.org
Wed Mar 14 20:39:20 PDT 2007
Author: leif
Date: 2007-03-14 20:39:19 -0700 (Wed, 14 Mar 2007)
New Revision: 6260
Modified:
cs/pythia/trunk/pyre/applications/CommandlineParser.py
Log:
Allow setting a property to an empty string from the command line:
foo --name=
foo --name=""
Modified: cs/pythia/trunk/pyre/applications/CommandlineParser.py
===================================================================
--- cs/pythia/trunk/pyre/applications/CommandlineParser.py 2007-03-15 02:51:13 UTC (rev 6259)
+++ cs/pythia/trunk/pyre/applications/CommandlineParser.py 2007-03-15 03:39:19 UTC (rev 6260)
@@ -120,8 +120,7 @@
# dangling =
if len(tokens) > 1 and not tokens[1]:
- self._debug.log("tokens: bad expression: %s" % candidate)
- raise CommandlineParser.CommandlineException("bad expression: '%s': no rhs" % candidate)
+ tokens.append("") # allow setting a property to the empty string
# lhs, rhs
lhs = tokens[0]
More information about the cig-commits
mailing list