MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / getActionArguments

Method getActionArguments

src/Config.py:319–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

startFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected