MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / subcmd_func

Method subcmd_func

tests/test_argparse.py:358–360  ·  view source on GitHub ↗
(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

Calls 1

poutputMethod · 0.80

Tested by

no test coverage detected