Index: subcommand.py |
diff --git a/subcommand.py b/subcommand.py |
index 0201c90aa35d61a17252fd4eeb1e227bd76375d3..a9ebae098d49babcd3693ea6a1a570b75cc10e50 100644 |
--- a/subcommand.py |
+++ b/subcommand.py |
@@ -128,8 +128,9 @@ class CommandDispatcher(object): |
and/or incomplete names. |
""" |
commands = self.enumerate_commands() |
- if name_asked in commands: |
- return commands[name_asked] |
+ name_to_dash = name_asked.replace('_', '-') |
+ if name_to_dash in commands: |
+ return commands[name_to_dash] |
# An exact match was not found. Try to be smart and look if there's |
# something similar. |