Added verbose flag to format.py (#47)

Making the "Processing" lines only print with a verbose option keeps the output clean.
This commit is contained in:
Tyler Veness
2016-05-22 21:40:30 -07:00
committed by Peter Johnson
parent 0d655d7cec
commit 248ca0c4a0

View File

@@ -43,5 +43,7 @@ if sys.platform.startswith("win32"):
clangExec += ".exe"
for name in files:
print("Processing", name,)
# List names of files as they are processed if verbose flag was given
if len(sys.argv) > 1 and sys.argv[1] == "-v":
print("Processing", name,)
call([clangExec, "-i", "-style=file", name])