Subclass ArgumentParser in order to turn off the abbreviation matching on older pythons. `allow_abbrev` parameter was added by Python 3.5 to do it. Thanks to @paul.j3 - https://bugs.python.org/msg204678 for this solution.
| 2595 | |
| 2596 | |
| 2597 | class CustomizedArgumentParser(ArgumentParser): |
| 2598 | """ |
| 2599 | Subclass ArgumentParser in order to turn off |
| 2600 | the abbreviation matching on older pythons. |
| 2601 | |
| 2602 | `allow_abbrev` parameter was added by Python 3.5 to do it. |
| 2603 | Thanks to @paul.j3 - https://bugs.python.org/msg204678 for this solution. |
| 2604 | """ |
| 2605 | |
| 2606 | def _get_option_tuples(self, option_string): |
| 2607 | """ |
| 2608 | Default of this method searches through all possible prefixes |
| 2609 | of the option string and all actions in the parser for possible |
| 2610 | interpretations. |
| 2611 | |
| 2612 | To view the original source of this method, running, |
| 2613 | ``` |
| 2614 | import inspect; import argparse; inspect.getsourcefile(argparse) |
| 2615 | ``` |
| 2616 | will give the location of the 'argparse.py' file that have this method. |
| 2617 | """ |
| 2618 | return [] |
| 2619 | |
| 2620 | |
| 2621 | def get_additional_data(browser): |