Changeset 78a2e6a in rattail


Ignore:
Timestamp:
06/27/18 14:12:55 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
938c29d
Parents:
adb85b8
Message:

Whoops, only show subcommand help if we know user asked for it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/commands/core.py

    radb85b8 r78a2e6a  
    267267            return
    268268        elif cmd in self.subcommands:
    269             cmd = self.subcommands[cmd](parent=self)
    270             cmd.parser.print_help()
    271             return
     269            if '-h' in args.argv or '--help' in args.argv:
     270                cmd = self.subcommands[cmd](parent=self)
     271                cmd.parser.print_help()
     272                return
    272273        else:
    273274            self.print_help()
Note: See TracChangeset for help on using the changeset viewer.