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

Function _command

unit-tests/test_command_prog_usage.py:10–21  ·  view source on GitHub ↗
(prog)

Source from the content-addressed store, hash-verified

8
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
23
24def _usage(cmd, **kwargs):

Calls 1

_CmdClass · 0.85

Tested by

no test coverage detected