Improve --debug-flag error message
This commit is contained in:
parent
13c5150e58
commit
20b17f3fb1
@ -156,8 +156,8 @@ def debug_flag_error(flag):
|
||||
if flag in valid_flags:
|
||||
return flag
|
||||
else:
|
||||
raise argparse.ArgumentTypeError("Invalid flag - valid flags include: " +
|
||||
str(valid_flags))
|
||||
raise argparse.ArgumentTypeError("Invalid debug flag - valid flags: {}"
|
||||
.format(', '.join(valid_flags)))
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
Reference in New Issue
Block a user