diff options
-rwxr-xr-x | unperish | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -82,13 +82,12 @@ class Unperish(cliapp.Application): except IOError: pass - cmd_methods = self._subcommands() - method = self._normalize_cmd(subcommand) - if method in cmd_methods: + if subcommand in self._subcommands: + method = self._subcommands[subcommand] if self.settings['verbose']: self.output.write('command: %s\n' % subcommand) if not self.settings['no-act']: - getattr(self, method)([]) + method([]) else: raise cliapp.AppException('unknown command %s' % subcommand) |