From 248ca0c4a04b7e797f26b6d6a4f628f9ae8eb214 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sun, 22 May 2016 21:40:30 -0700 Subject: [PATCH] Added verbose flag to format.py (#47) Making the "Processing" lines only print with a verbose option keeps the output clean. --- styleguide/format.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/styleguide/format.py b/styleguide/format.py index 7639a26b7b..27e0f0b1bf 100755 --- a/styleguide/format.py +++ b/styleguide/format.py @@ -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])