summaryrefslogtreecommitdiffstats
path: root/pykolab/cli
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-13 12:25:55 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-13 12:25:55 +0000
commita232baceb19e6420eea75e56cb13e036a468afa3 (patch)
tree484a52386551e4295bfb957769cee11f3cc81e3e /pykolab/cli
parent9aca9a2600b5185797008340ba8f8aae6caf183b (diff)
downloadpykolab-a232baceb19e6420eea75e56cb13e036a468afa3.tar.gz
pop the correctly indexed argument off the list
Diffstat (limited to 'pykolab/cli')
-rw-r--r--pykolab/cli/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/cli/__init__.py b/pykolab/cli/__init__.py
index 9c5f4b5..aa054c0 100644
--- a/pykolab/cli/__init__.py
+++ b/pykolab/cli/__init__.py
@@ -59,7 +59,7 @@ class Cli(object):
to_execute.append(sys.argv[arg_num].replace('-','_'))
for cmd_component in to_execute:
- sys.argv.pop(sys.argv.index(cmd_component))
+ sys.argv.pop(sys.argv.index(cmd_component.replace('_','-')))
commands.execute('_'.join(to_execute))