Skip to content

Commit 618dda3

Browse files
authored
Merge pull request #2052 from bwitt/patch-1
Add note about --exclude-file in README and update the help text also
2 parents 702e948 + c807a6c commit 618dda3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ The ``-I`` flag can be used for a list of certain words to allow that are in the
5151

5252
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. ::
5353

54+
codespell -x FILE, --exclude-file=FILE
55+
56+
Ignore whole lines that match those in ``FILE``. The lines in ``FILE`` should match the to-be-excluded lines exactly.
57+
5458
codespell -S, --skip=
5559

5660
Comma-separated list of files to skip. It accepts globs as well. Examples:

codespell_lib/_codespell.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,9 @@ def parse_options(args):
343343
'you\'d give "*.eps,*.txt" to this option.')
344344

345345
parser.add_argument('-x', '--exclude-file', type=str, metavar='FILE',
346-
help='FILE with lines that should not be checked for '
347-
'errors or changed')
346+
help='ignore whole lines that match those '
347+
'in the file FILE. The lines in FILE '
348+
'should match the to-be-excluded lines exactly')
348349

349350
parser.add_argument('-i', '--interactive',
350351
action='store', type=int, default=0,

0 commit comments

Comments
 (0)