Make args_erroor less verbose.

This removes the arugment help from the output, making the error much
easier to find. This solves #10090.
pull/10193/head
Brian Daniels 2019-03-21 21:11:27 -05:00
parent 2b4960bffe
commit b809ec6226
1 changed files with 1 additions and 2 deletions

View File

@ -339,8 +339,7 @@ def args_error(parser, message):
parser - the ArgumentParser object that parsed the command line
message - what went wrong
"""
parser.error(message)
sys.exit(2)
parser.exit(status=2, message=message+'\n')
def construct_enum(**enums):