mirror of
https://github.com/beetbox/beets.git
synced 2026-01-31 04:21:42 +01:00
reasonable error message for "beet help <unknown>"
This commit is contained in:
parent
ca1581996d
commit
82bcd63f34
1 changed files with 2 additions and 0 deletions
|
|
@ -660,6 +660,8 @@ class SubcommandsOptionParser(optparse.OptionParser):
|
|||
# particular
|
||||
cmdname = subargs[0]
|
||||
helpcommand = self._subcommand_for_name(cmdname)
|
||||
if not helpcommand:
|
||||
self.error('no command named {0}'.format(cmdname))
|
||||
helpcommand.parser.print_help()
|
||||
self.exit()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue