Validate --argumentfile is not shortened.
@@ -148,6 +148,9 @@ class ArgumentParser(object):
if self._auto_argumentfile:
args = self._process_possible_argfile(args)
opts, args = self._parse_args(args)
+ if self._auto_argumentfile and opts['argumentfile']:
+ raise DataError("Using '--argumentfile' option in shortened format "
+ "like '--argumentf' is not supported.")
opts, args = self._handle_special_options(opts, args)
self._arg_limit_validator(args)
if self._validator:
