Changeset adb85b8 in rattail


Ignore:
Timestamp:
06/27/18 14:09:16 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
78a2e6a
Parents:
abbce27
Message:

Show subcommand help as early as possible

e.g. `rattail import-rattail -h' was causing logging to be configured, which
can often fail if no config file is given

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/commands/core.py

    rabbce27 radb85b8  
    266266            cmd.parser.print_help()
    267267            return
    268         elif cmd not in self.subcommands:
     268        elif cmd in self.subcommands:
     269            cmd = self.subcommands[cmd](parent=self)
     270            cmd.parser.print_help()
     271            return
     272        else:
    269273            self.print_help()
    270274            return
Note: See TracChangeset for help on using the changeset viewer.