mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
check_spelling: correct help text formatting, correct "--check" text
This commit is contained in:
parent
5003253aca
commit
9af355fcc1
1 changed files with 7 additions and 6 deletions
|
@ -712,9 +712,10 @@ def spell_check_file_with_cache_support(
|
||||||
|
|
||||||
def argparse_create() -> argparse.ArgumentParser:
|
def argparse_create() -> argparse.ArgumentParser:
|
||||||
|
|
||||||
# When --help or no args are given, print this help
|
parser = argparse.ArgumentParser(
|
||||||
description = __doc__
|
description=__doc__,
|
||||||
parser = argparse.ArgumentParser(description=description)
|
formatter_class=argparse.RawTextHelpFormatter,
|
||||||
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--match",
|
"--match",
|
||||||
|
@ -750,10 +751,10 @@ def argparse_create() -> argparse.ArgumentParser:
|
||||||
required=False,
|
required=False,
|
||||||
metavar='CHECK_TYPE',
|
metavar='CHECK_TYPE',
|
||||||
help=(
|
help=(
|
||||||
'Text to extract for checking.\n'
|
'The check to perform.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'- ``COMMENTS`` extracts comments from source code.\n'
|
'- ``SPELLING`` check spelling.\n'
|
||||||
'- ``STRINGS`` extracts text.'
|
'- ``DUPLICATES`` report repeated words.'
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue