mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
2b4960bffe
commit
b809ec6226
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue