Function
do_help
(parser, subparsers, args)
Source from the content-addressed store, hash-verified
| 622 | # Help. |
| 623 | |
| 624 | def do_help(parser, subparsers, args): |
| 625 | if args.help_cmd: |
| 626 | if args.help_cmd in subparsers: |
| 627 | subparsers[args.help_cmd].print_help() |
| 628 | else: |
| 629 | args.error("Unknown command '{}'".format(args.help_cmd)) |
| 630 | else: |
| 631 | parser.print_help() |
| 632 | |
| 633 | |
| 634 | # Main program, parse command line and execute. |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…