| 159 | |
| 160 | |
| 161 | class ServiceArgParser(CLIArgParser): |
| 162 | def __init__(self, operations_table, service_name): |
| 163 | super().__init__( |
| 164 | formatter_class=argparse.RawTextHelpFormatter, |
| 165 | add_help=False, |
| 166 | conflict_handler='resolve', |
| 167 | usage=USAGE, |
| 168 | ) |
| 169 | self._build(operations_table) |
| 170 | self._service_name = service_name |
| 171 | |
| 172 | def _build(self, operations_table): |
| 173 | self.add_argument( |
| 174 | 'operation', action=CommandAction, command_table=operations_table |
| 175 | ) |
| 176 | |
| 177 | |
| 178 | class ArgTableArgParser(CLIArgParser): |
no outgoing calls