Cut something
(self, ns: argparse.Namespace)
| 453 | self._dummy = dummy # prevents autoload |
| 454 | |
| 455 | def do_cut(self, ns: argparse.Namespace) -> None: |
| 456 | """Cut something""" |
| 457 | handler = ns.cmd2_subcmd_handler |
| 458 | if handler is not None: |
| 459 | # Call whatever subcommand function was selected |
| 460 | handler(ns) |
| 461 | else: |
| 462 | # No subcommand was provided, so call help |
| 463 | self._cmd.poutput("This command does nothing without sub-parsers registered") |
| 464 | self._cmd.do_help("cut") |
| 465 | |
| 466 | |
| 467 | class LoadableFruits(cmd2.CommandSet): |