Add support for project-local style (in .style.yapf)
YAPF will now look for this file at startup and use it as
the default if found. If not found pep8 is still the default.
Now that we have project-local style there is no need for the
hardcoded yapf style (it will be the default for all files
in the yapf tree now).
diff --git a/README.rst b/README.rst
index 66517ce..8210cac 100644
--- a/README.rst
+++ b/README.rst
@@ -74,7 +74,9 @@
Options::
- usage: yapf [-h] [--style STYLE] [-d | -i] [-l START-END | -r] ...
+ usage: yapf [-h] [--version] [--style-help] [--style STYLE] [--verify]
+ [-d | -i] [-l START-END | -r]
+ [files [files ...]]
Formatter for Python code.
@@ -83,9 +85,15 @@
optional arguments:
-h, --help show this help message and exit
+ --version show version number and exit
+ --style-help show style settings and exit
--style STYLE specify formatting style: either a style name (for
example "pep8" or "google"), or the name of a file
- with style settings. pep8 is the default.
+ with style settings. The default is pep8 unless a
+ .style.yapf file located in one of the parent
+ directories of the source file (or current directory
+ for stdin)
+ --verify try to verify refomatted code for syntax errors
-d, --diff print the diff for the fixed source
-i, --in-place make changes to files in place
-l START-END, --lines START-END