Method
subcmd_func
(self, args: argparse.Namespace)
Source from the content-addressed store, hash-verified
| 356 | |
| 357 | @cmd2.as_subcommand_to("test_subcmd_decorator", "subcmd", subcmd_parser, help=subcmd_parser.description.lower()) |
| 358 | def subcmd_func(self, args: argparse.Namespace) -> None: |
| 359 | # Make sure printing the Namespace works. The way we originally added cmd2_handler to it resulted in a RecursionError. |
| 360 | self.poutput(args) |
| 361 | |
| 362 | helpless_subcmd_parser = cmd2.Cmd2ArgumentParser(add_help=False, description="A subcommand with no help") |
| 363 | |
Callers
nothing calls this directly
Tested by
no test coverage detected