Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

restore_rollback => restore-rollback

  • Loading branch information...
commit 2452a3ed7dddb6819888016d1a98cd61ab0563ff 1 parent ec47cf0
Liraz Siri lirazsiri authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 cliwrapper.py
  2. +1 −1  cmd.py
4 cliwrapper.py
View
@@ -22,14 +22,14 @@ def _list_commands(paths):
m = re.match(r'^cmd_(.*)\.py[co]?$', file)
if not m:
continue
- command = m.group(1)
+ command = m.group(1).replace("_", "-")
commands.add(command)
return commands
@staticmethod
def _get_internals_module(name, path):
- modname = "cmd_" + name
+ modname = "cmd_" + name.replace("-", "_")
args = imp.find_module(modname, path)
return imp.load_module(modname, *args)
2  cmd.py
View
@@ -23,7 +23,7 @@ class CliWrapper(CliWrapper):
'',
'passphrase', 'escrow',
'',
- 'backup', 'list', 'restore', 'restore_rollback',
+ 'backup', 'list', 'restore', 'restore-rollback',
'',
'internal']
Please sign in to comment.
Something went wrong with that request. Please try again.