MCPcopy
hub / github.com/pyinstaller/pyinstaller / _process_long_opt

Method _process_long_opt

bootloader/waflib/Options.py:36–48  ·  view source on GitHub ↗
(self, rargs, values)

Source from the content-addressed store, hash-verified

34 self.error(str(e))
35
36 def _process_long_opt(self, rargs, values):
37 if self.allow_unknown:
38 back = [] + rargs
39 try:
40 optparse.OptionParser._process_long_opt(self, rargs, values)
41 except optparse.BadOptionError:
42 while rargs:
43 rargs.pop()
44 rargs.extend(back)
45 rargs.pop(0)
46 raise
47 else:
48 optparse.OptionParser._process_long_opt(self, rargs, values)
49
50 def print_usage(self, file=None):
51 return self.print_help(file)

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
extendMethod · 0.45

Tested by

no test coverage detected