check_fix_white_space.py: Hint the user about --fix

When the script detects whitespace damage, hint the user that
the same script can fix it.
This commit is contained in:
Torsten Bögershausen
2019-12-09 11:00:50 +01:00
parent 6e723594b5
commit a57ae08ebe

View File

@@ -90,6 +90,7 @@ if __name__ == "__main__":
for file in incorrect_files:
print("ERROR: '{}' has white space damage".format(file))
if incorrect_files:
print('run %s --fix' % sys.argv[0])
exit(1)
except IOError as e:
print(e) # Likely no files found