check-style: Add notes on how to use the script to fix formatting

This commit is contained in:
Eduardo Almeida
2024-07-01 15:21:38 +01:00
parent 1d03ba7700
commit 70eda40b47

View File

@@ -775,7 +775,14 @@ if __name__ == "__main__":
if not all_checks_successful:
if args.verbose:
print("")
print('NOTE: To fix the files automatically, run this script with the flag "--fix"')
print(
"",
"Notes to fix the above formatting issues:",
' - To fix the formatting of specific files, run this script with the flag "--fix":',
" $ ./utils/check-style-clang-format.py --fix path [path ...]",
" - To fix the formatting of all files modified by this branch, run this script in the following way:",
" $ git diff --name-only master | xargs ./utils/check-style-clang-format.py --fix",
sep="\n",
)
sys.exit(1)