Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-08-11 06:22:34 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-08-11 06:22:34 (GMT)
commitf7ffc333f6b51bd06c6e08050461898b837de7fe (patch)
tree67c1dd6e0a66c9d3c094fd1cdac1f9e779256a38
parent6a420c1f5f3e41c41ef36165da4f6e703d6b9fc9 (diff)
Fix parsing sugar-network utility cmdline arguments
-rwxr-xr-xsugar-network5
1 files changed, 3 insertions, 2 deletions
diff --git a/sugar-network b/sugar-network
index d48c58e..7c71936 100755
--- a/sugar-network
+++ b/sugar-network
@@ -297,10 +297,11 @@ class Application(application.Application):
arg = shlex.split(arg)
if not arg:
continue
+ arg = arg[0]
if '=' in arg:
- arg, value = arg[0].split('=', 1)
+ arg, value = arg.split('=', 1)
else:
- arg = arg[0]
+ arg = arg
value = 1
arg = arg.strip()
enforce(arg, 'No argument name in %r expression', arg)