(self, lib, opts, args)
| 13 | ) |
| 14 | |
| 15 | def func(self, lib, opts, args): |
| 16 | if args: |
| 17 | cmdname = args[0] |
| 18 | helpcommand = self.root_parser._subcommand_for_name(cmdname) |
| 19 | if not helpcommand: |
| 20 | raise UserError(f"unknown command '{cmdname}'") |
| 21 | helpcommand.print_help() |
| 22 | else: |
| 23 | self.root_parser.print_help() |
no test coverage detected