summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/cli/__init__.py')
-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))