MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / __init__

Method __init__

tests/test_commandset.py:969–971  ·  view source on GitHub ↗

Dummy variable prevents this from being autoloaded in other tests

(self, dummy)

Source from the content-addressed store, hash-verified

967
968class CommandSetWithPathComplete(cmd2.CommandSet):
969 def __init__(self, dummy) -> None:
970 """Dummy variable prevents this from being autoloaded in other tests"""
971 super().__init__()
972
973 parser = cmd2.Cmd2ArgumentParser()
974 parser.add_argument("path", nargs="+", help="paths", completer=cmd2.Cmd.path_complete)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected