aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclang/tools/clang-format/clang-format-diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py
index cb8d942..7c14178 100755
--- a/clang/tools/clang-format/clang-format-diff.py
+++ b/clang/tools/clang-format/clang-format-diff.py
@@ -71,7 +71,7 @@ def main():
command = [binary, '-i', filename]
command.extend(lines)
if args.style:
- command.extend(['-style', style])
+ command.extend(['-style', args.style])
p = subprocess.Popen(command, stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stdin=subprocess.PIPE)