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.
| 181 | |
| 182 | |
| 183 | class 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 | |
| 196 | class ToolchainCL: |