MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / PassThroughOptionParser

Class PassThroughOptionParser

pyfa.py:51–64  ·  view source on GitHub ↗

An unknown option pass-through implementation of OptionParser. OSX passes -psn_0_* argument, which is something that pyfa does not handle. See GH issue #423

Source from the content-addressed store, hash-verified

49
50
51class PassThroughOptionParser(OptionParser):
52 """
53 An unknown option pass-through implementation of OptionParser.
54
55 OSX passes -psn_0_* argument, which is something that pyfa does not handle. See GH issue #423
56 """
57
58 def _process_args(self, largs, rargs, values):
59 while rargs:
60 try:
61 OptionParser._process_args(self, largs, rargs, values)
62 except (BadOptionError, AmbiguousOptionError) as e:
63 # pyfalog.error("Bad startup option passed.")
64 largs.append(e.opt_str)
65
66
67# Parse command line options

Callers 1

pyfa.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected