(*args)
| 93 | |
| 94 | |
| 95 | def missing_subcommand(*args) -> str: |
| 96 | base = COMMANDS |
| 97 | for arg in args: |
| 98 | base = base[arg] |
| 99 | |
| 100 | assert isinstance(base, dict) |
| 101 | subcommands = ', '.join(map(repr, base.keys())) |
| 102 | return f'Please specify one of these: {subcommands}' |
| 103 | |
| 104 | |
| 105 | def generate_subparsers(root, parent_parser, definitions, spec): |
no outgoing calls
no test coverage detected