(prog)
| 8 | |
| 9 | |
| 10 | def _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 | |
| 24 | def _usage(cmd, **kwargs): |
no test coverage detected