For interactive use, we have both short options and tab-completion.
Abbreviated options are problematic because of forward-compatibility:
if we add more options in the future, an older abbreviation might become
non-unique and stop working.
self._ini_file_key = "" # multi line list processing
self._ini_file_list_mode = False
+ # we need to suppress mypy here: https://github.com/python/mypy/issues/6799
super().__init__(*kargs,
# Add config files to be parsed:
fromfile_prefix_chars=ArgumentParserMkosi.fromfile_prefix_chars,
formatter_class=CustomHelpFormatter,
+ # Tweak defaults:
+ allow_abbrev=False,
# Pass through the other options:
- **kwargs)
+ **kwargs,
+ ) # type: ignore
@staticmethod
def _camel_to_arg(camel: str) -> str: