Add note about --exclude-file in README and update help text
diff --git a/README.rst b/README.rst
index dab29a8..9a3f7c7 100644
--- a/README.rst
+++ b/README.rst
@@ -51,6 +51,10 @@
The ``-L`` flag can be used to allow certain words that are comma-separated placed immediately after it. **Important note:** The list passed to ``-L`` is case-sensitive based on how it is listed in the codespell dictionaries. ::
+ codespell -x FILE, --exclude-file=FILE
+
+Ignore whole lines that match those in ``FILE``. The lines in ``FILE`` should match the to-be-excluded lines exactly.
+
codespell -S, --skip=
Comma-separated list of files to skip. It accepts globs as well. Examples:
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py
index 86cc2c0..7065e0b 100644
--- a/codespell_lib/_codespell.py
+++ b/codespell_lib/_codespell.py
@@ -343,8 +343,9 @@
'you\'d give "*.eps,*.txt" to this option.')
parser.add_argument('-x', '--exclude-file', type=str, metavar='FILE',
- help='FILE with lines that should not be checked for '
- 'errors or changed')
+ help='ignore whole lines that match those '
+ 'in the file FILE. The lines in FILE '
+ 'should match the to-be-excluded lines exactly')
parser.add_argument('-i', '--interactive',
action='store', type=int, default=0,