Alternate command help.
(self, args)
| 119 | |
| 120 | @cmd2.with_argparser(base2_parser) |
| 121 | def do_alternate(self, args) -> None: |
| 122 | """Alternate command help.""" |
| 123 | func = getattr(args, "func", None) |
| 124 | if func is not None: |
| 125 | # Call whatever subcommand function was selected |
| 126 | func(self, args) |
| 127 | else: |
| 128 | # No subcommand was provided, so call help |
| 129 | self.do_help("alternate") |
| 130 | |
| 131 | |
| 132 | # List of strings used with completion functions |