MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / getAction

Method getAction

src/Config.py:327–334  ·  view source on GitHub ↗
(self, argv)

Source from the content-addressed store, hash-verified

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):

Callers 1

parseCommandlineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected