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

Method do_alternate

tests/test_completion.py:121–129  ·  view source on GitHub ↗

Alternate command help.

(self, args)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

do_helpMethod · 0.80

Tested by

no test coverage detected