summaryrefslogtreecommitdiffstats
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-23 17:08:00 +0000
commit51adf1dc6680802eda24bd077f314ee60c7c96b2 (patch)
treeda9c4796e243b73051fbb290ad6e951596b55ee1
parentce7282b78e4784faff9fb4df2a5ebe3077915db6 (diff)
downloadpykolab-51adf1dc6680802eda24bd077f314ee60c7c96b2.tar.gz
pop the correctly indexed argument off the list
-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))