(self)
| 317 | |
| 318 | # Find arguments specified for current action |
| 319 | def getActionArguments(self): |
| 320 | back = {} |
| 321 | arguments = self.parser._subparsers._group_actions[0].choices[self.action]._actions[1:] # First is --version |
| 322 | for argument in arguments: |
| 323 | back[argument.dest] = getattr(self, argument.dest) |
| 324 | return back |
| 325 | |
| 326 | # Try to find action from argv |
| 327 | def getAction(self, argv): |