Base command help
(self, args)
| 1232 | |
| 1233 | @cmd2.with_argparser(base_parser, with_unknown_args=True) |
| 1234 | def do_base(self, args) -> None: |
| 1235 | """Base command help""" |
| 1236 | func = getattr(args, "func", None) |
| 1237 | if func is not None: |
| 1238 | # Call whatever subcommand function was selected |
| 1239 | func(self, args) |
| 1240 | else: |
| 1241 | # No subcommand was provided, so call help |
| 1242 | self.do_help("base") |
| 1243 | |
| 1244 | |
| 1245 | @pytest.fixture |