Skip to content

Commit 4327c81

Browse files
committed
Minor cleanup of query_testlists help
1 parent d5f54eb commit 4327c81

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

scripts/query_testlists

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,44 +26,43 @@ def parse_command_line(args, description):
2626
###############################################################################
2727
parser = argparse.ArgumentParser(
2828
description=description,
29-
formatter_class=argparse.RawDescriptionHelpFormatter)
29+
formatter_class=argparse.RawTextHelpFormatter)
3030

3131
CIME.utils.setup_standard_logging_options(parser)
3232

3333
parser.add_argument("--count", action="store_true",
34-
help="Rather than listing tests, just give counts by category/machine/compiler")
34+
help="Rather than listing tests, just give counts by category/machine/compiler.")
3535

3636
parser.add_argument("--list", dest='list_type',
3737
choices = ['category', 'categories',
3838
'machine', 'machines',
3939
'compiler', 'compilers'],
40-
help="Rather than listing tests, list the available options for "
41-
"--xml-category, --xml-machine, or --xml-compiler. "
42-
"(The singular and plural forms are equivalent - so '--list category' "
40+
help="Rather than listing tests, list the available options for\n"
41+
"--xml-category, --xml-machine, or --xml-compiler.\n"
42+
"(The singular and plural forms are equivalent - so '--list category'\n"
4343
"is equivalent to '--list categories', etc.)")
4444

4545
parser.add_argument("--show-options", action="store_true",
46-
help="For each test, also show options for that test "
47-
"(wallclock time, memory leak tolerance, etc.). "
46+
help="For each test, also show options for that test\n"
47+
"(wallclock time, memory leak tolerance, etc.).\n"
4848
"(Has no effect with --list or --count options.)")
4949

5050
parser.add_argument("--define-testtypes", action="store_true",
51-
help="At the top of the list of tests, define "
52-
"all of the possible test types. "
51+
help="At the top of the list of tests, define all of the possible test types.\n"
5352
"(Has no effect with --list or --count options.)")
5453

5554
parser.add_argument("--xml-category",
56-
help="Only include tests in this category; default is all categories")
55+
help="Only include tests in this category; default is all categories.")
5756

5857
parser.add_argument("--xml-machine",
59-
help="Only include tests for this machine; default is all machines")
58+
help="Only include tests for this machine; default is all machines.")
6059

6160
parser.add_argument("--xml-compiler",
62-
help="Only include tests for this compiler; default is all compilers")
61+
help="Only include tests for this compiler; default is all compilers.")
6362

6463
parser.add_argument("--xml-testlist",
65-
help="Path to testlist file from which tests are gathered; "
66-
"default is all files specified in config_files.xml")
64+
help="Path to testlist file from which tests are gathered;\n"
65+
"default is all files specified in config_files.xml.")
6766

6867
args = CIME.utils.parse_args_and_handle_standard_logging_options(args, parser)
6968

0 commit comments

Comments
 (0)