Rename migrate_to_labels -> migrate-to-labels

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2015-05-21 14:54:41 +01:00
commit 3080244c0b
3 changed files with 5 additions and 3 deletions

View file

@ -33,6 +33,8 @@ class DocoptCommand(object):
if command is None:
raise SystemExit(getdoc(self))
command = command.replace('-', '_')
if not hasattr(self, command):
raise NoSuchCommand(command, self)