(self, argv)
| 325 | |
| 326 | # Try to find action from argv |
| 327 | def getAction(self, argv): |
| 328 | actions = [list(action.choices.keys()) for action in self.parser._actions if action.dest == "action"][0] # Valid actions |
| 329 | found_action = False |
| 330 | for action in actions: # See if any in argv |
| 331 | if action in argv: |
| 332 | found_action = action |
| 333 | break |
| 334 | return found_action |
| 335 | |
| 336 | # Move plugin parameters to end of argument list |
| 337 | def moveUnknownToEnd(self, argv, default_action): |