mirror of
https://github.com/codespell-project/codespell.git
synced 2025-08-06 09:40:56 +08:00
regex
This commit is contained in:
@ -283,9 +283,9 @@ def parse_options(args):
|
|||||||
action='store', type=str,
|
action='store', type=str,
|
||||||
help='regular expression which is used to find '
|
help='regular expression which is used to find '
|
||||||
'patterns to ignore by treating as whitespace. '
|
'patterns to ignore by treating as whitespace. '
|
||||||
'When writing regexes, consider ensuring there '
|
'When writing regular expressions, consider '
|
||||||
'are boundary non-word chars, e.g., '
|
'ensuring there are boundary non-word chars, '
|
||||||
'"\\bmatch\\b". Defaults to empty/disabled.')
|
'e.g., "\\bmatch\\b". Defaults to empty/disabled.')
|
||||||
parser.add_argument('-I', '--ignore-words',
|
parser.add_argument('-I', '--ignore-words',
|
||||||
action='append', metavar='FILE',
|
action='append', metavar='FILE',
|
||||||
help='file that contains words which will be ignored '
|
help='file that contains words which will be ignored '
|
||||||
|
Reference in New Issue
Block a user