Improve --debug-flag error message

This commit is contained in:
Florian Bruhin 2017-04-11 21:19:49 +02:00
parent 13c5150e58
commit 20b17f3fb1

View File

@ -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():