MCPcopy Index your code
hub / github.com/kivy/python-for-android / NoAbbrevParser

Class NoAbbrevParser

pythonforandroid/toolchain.py:183–193  ·  view source on GitHub ↗

We want to disable argument abbreviation so as not to interfere with passing through arguments to build.py, but in python2 argparse doesn't have this option. This subclass alternative is follows the suggestion at https://bugs.python.org/issue14910.

Source from the content-addressed store, hash-verified

181
182
183class NoAbbrevParser(argparse.ArgumentParser):
184 """We want to disable argument abbreviation so as not to interfere
185 with passing through arguments to build.py, but in python2 argparse
186 doesn't have this option.
187
188 This subclass alternative is follows the suggestion at
189 https://bugs.python.org/issue14910.
190 """
191
192 def _get_option_tuples(self, option_string):
193 return []
194
195
196class ToolchainCL:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected