MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / _Cmd

Class _Cmd

unit-tests/test_command_prog_usage.py:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10def _command(prog):
11 class _Cmd(Command):
12 parser = argparse.ArgumentParser(prog=prog)
13 parser.add_argument('--name', '-n', dest='name')
14
15 def get_parser(self):
16 return _Cmd.parser
17
18 def execute(self, params, **kwargs):
19 return None
20
21 return _Cmd()
22

Callers 1

_commandFunction · 0.85

Calls

no outgoing calls

Tested by 1

_commandFunction · 0.68