Base command help.
(self, args)
| 108 | |
| 109 | @cmd2.with_argparser(base_parser) |
| 110 | def do_base(self, args) -> None: |
| 111 | """Base command help.""" |
| 112 | func = getattr(args, "func", None) |
| 113 | if func is not None: |
| 114 | # Call whatever subcommand function was selected |
| 115 | func(self, args) |
| 116 | else: |
| 117 | # No subcommand was provided, so call help |
| 118 | self.do_help("base") |
| 119 | |
| 120 | @cmd2.with_argparser(base2_parser) |
| 121 | def do_alternate(self, args) -> None: |