Lowercase the help messages

It seems to be common practice to lowercase these instead
of uppercasing the first word so let's just follow that
practice.

Change-Id: I2c8620257cd9f0566e1d7e1ec88461f18f0bcef4
This commit is contained in:
Joshua Harlow 2015-04-09 08:24:07 -07:00
parent 24a3c9642a
commit 062bf244b6
2 changed files with 25 additions and 25 deletions

View File

@ -52,29 +52,29 @@ Command line usage
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
--config path User config file location (default: doc8.ini, tox.ini, --config path user config file location (default: doc8.ini, tox.ini,
pep8.ini, setup.cfg). pep8.ini, setup.cfg).
--allow-long-titles Allow long section titles (default: False). --allow-long-titles allow long section titles (default: false).
--ignore code Ignore the given error code(s). --ignore code ignore the given error code(s).
--no-sphinx Do not ignore sphinx specific false positives. --no-sphinx do not ignore sphinx specific false positives.
--ignore-path path Ignore the given directory or file (globs are --ignore-path path ignore the given directory or file (globs are
supported). supported).
--ignore-path-errors path --ignore-path-errors path
Ignore the given specific errors in the provided file. ignore the given specific errors in the provided file.
--default-extension extension --default-extension extension
Default file extension to use when a file is found default file extension to use when a file is found
without a file extension. without a file extension.
--file-encoding encoding --file-encoding encoding
Override encoding to use when attempting to determine override encoding to use when attempting to determine
an input files text encoding (providing this avoids an input files text encoding (providing this avoids
using `chardet` to automatically detect encoding/s) using `chardet` to automatically detect encoding/s)
--max-line-length int --max-line-length int
Maximum allowed line length (default: 79). maximum allowed line length (default: 79).
-e extension, --extension extension -e extension, --extension extension
Check file extensions of the given type (default: check file extensions of the given type (default:
.rst, .txt). .rst, .txt).
-v, --verbose Run in verbose mode. -v, --verbose run in verbose mode.
--version Show the version and exit. --version show the version and exit.
Ini file usage Ini file usage
************** **************

View File

@ -280,36 +280,36 @@ def main():
formatter_class=argparse.RawDescriptionHelpFormatter) formatter_class=argparse.RawDescriptionHelpFormatter)
default_configs = ", ".join(CONFIG_FILENAMES) default_configs = ", ".join(CONFIG_FILENAMES)
parser.add_argument("paths", metavar='path', type=str, nargs='*', parser.add_argument("paths", metavar='path', type=str, nargs='*',
help=("Path to scan for doc files" help=("path to scan for doc files"
" (default: current directory)."), " (default: current directory)."),
default=[os.getcwd()]) default=[os.getcwd()])
parser.add_argument("--config", metavar='path', action="append", parser.add_argument("--config", metavar='path', action="append",
help="User config file location" help="user config file location"
" (default: %s)." % default_configs, " (default: %s)." % default_configs,
default=[]) default=[])
parser.add_argument("--allow-long-titles", action="store_true", parser.add_argument("--allow-long-titles", action="store_true",
help="Allow long section titles (default: False).", help="allow long section titles (default: false).",
default=False) default=False)
parser.add_argument("--ignore", action="append", metavar="code", parser.add_argument("--ignore", action="append", metavar="code",
help="Ignore the given error code(s).", help="ignore the given error code(s).",
type=split_set_type, type=split_set_type,
default=[]) default=[])
parser.add_argument("--no-sphinx", action="store_false", parser.add_argument("--no-sphinx", action="store_false",
help="Do not ignore sphinx specific false positives.", help="do not ignore sphinx specific false positives.",
default=True, dest='sphinx') default=True, dest='sphinx')
parser.add_argument("--ignore-path", action="append", default=[], parser.add_argument("--ignore-path", action="append", default=[],
help="Ignore the given directory or file (globs" help="ignore the given directory or file (globs"
" are supported).", metavar='path') " are supported).", metavar='path')
parser.add_argument("--ignore-path-errors", action="append", default=[], parser.add_argument("--ignore-path-errors", action="append", default=[],
help="Ignore the given specific errors in the" help="ignore the given specific errors in the"
" provided file.", metavar='path') " provided file.", metavar='path')
parser.add_argument("--default-extension", action="store", parser.add_argument("--default-extension", action="store",
help="Default file extension to use when a file is" help="default file extension to use when a file is"
" found without a file extension.", " found without a file extension.",
default='', dest='default_extension', default='', dest='default_extension',
metavar='extension') metavar='extension')
parser.add_argument("--file-encoding", action="store", parser.add_argument("--file-encoding", action="store",
help="Override encoding to use when attempting" help="override encoding to use when attempting"
" to determine an input files text encoding " " to determine an input files text encoding "
"(providing this avoids using `chardet` to" "(providing this avoids using `chardet` to"
" automatically detect encoding/s)", " automatically detect encoding/s)",
@ -317,18 +317,18 @@ def main():
metavar='encoding') metavar='encoding')
parser.add_argument("--max-line-length", action="store", metavar="int", parser.add_argument("--max-line-length", action="store", metavar="int",
type=int, type=int,
help="Maximum allowed line" help="maximum allowed line"
" length (default: %s)." % MAX_LINE_LENGTH, " length (default: %s)." % MAX_LINE_LENGTH,
default=MAX_LINE_LENGTH) default=MAX_LINE_LENGTH)
parser.add_argument("-e", "--extension", action="append", parser.add_argument("-e", "--extension", action="append",
metavar="extension", metavar="extension",
help="Check file extensions of the given type" help="check file extensions of the given type"
" (default: %s)." % ", ".join(FILE_PATTERNS), " (default: %s)." % ", ".join(FILE_PATTERNS),
default=list(FILE_PATTERNS)) default=list(FILE_PATTERNS))
parser.add_argument("-v", "--verbose", dest="verbose", action='store_true', parser.add_argument("-v", "--verbose", dest="verbose", action='store_true',
help="Run in verbose mode.", default=False) help="run in verbose mode.", default=False)
parser.add_argument("--version", dest="version", action='store_true', parser.add_argument("--version", dest="version", action='store_true',
help="Show the version and exit.", default=False) help="show the version and exit.", default=False)
args = vars(parser.parse_args()) args = vars(parser.parse_args())
if args.get('version'): if args.get('version'):
print(version.version_string()) print(version.version_string())