(argument)
| 747 | # ===================== |
| 748 | |
| 749 | def _get_action_name(argument): |
| 750 | if argument is None: |
| 751 | return None |
| 752 | elif argument.option_strings: |
| 753 | return '/'.join(argument.option_strings) |
| 754 | elif argument.metavar not in (None, SUPPRESS): |
| 755 | return argument.metavar |
| 756 | elif argument.dest not in (None, SUPPRESS): |
| 757 | return argument.dest |
| 758 | elif argument.choices: |
| 759 | return '{' + ','.join(argument.choices) + '}' |
| 760 | else: |
| 761 | return None |
| 762 | |
| 763 | |
| 764 | class ArgumentError(Exception): |
no test coverage detected