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

Method do_base

tests/test_completion.py:110–118  ·  view source on GitHub ↗

Base command help.

(self, args)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

do_helpMethod · 0.80

Tested by

no test coverage detected