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

Method do_base

tests/test_completion.py:1234–1242  ·  view source on GitHub ↗

Base command help

(self, args)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

do_helpMethod · 0.80

Tested by

no test coverage detected