Permalink
Browse files

runastyle: Ignore user's default options file

If we pass --options=none to astyle, it ignores the user's
default options file, and only uses the command line parameters.
This way, if the user has a default options file, it won't conflict
with the style set by the script.
  • Loading branch information...
crumblingstatue committed Jan 16, 2014
1 parent adc8713 commit 10415df93e9edd7ae32bcb62a6fb18371bfb10c7
Showing with 1 addition and 1 deletion.
  1. +1 −1 runastyle
View
@@ -14,7 +14,7 @@ if [[ "`astyle --version 2>&1`" != ${ASTYLE_VERSION}* ]]; then
fi
style="--style=stroustrup --indent=spaces=4 --indent-namespaces --lineend=linux --min-conditional-indent=0"
-options="--pad-header --unpad-paren --suffix=none --convert-tabs"
+options="--options=none --pad-header --unpad-paren --suffix=none --convert-tabs"
astyle $style $options cli/*.cpp
astyle $style $options cli/*.h

0 comments on commit 10415df

Please sign in to comment.