Skip to content

Commit 0b89ff9

Browse files
author
hauntsaninja
committed
stubtest: [minor] improve help message
1 parent 6f2cb39 commit 0b89ff9

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

scripts/stubtest.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -978,14 +978,11 @@ def strip_comments(s: str) -> str:
978978
def main() -> int:
979979
assert sys.version_info >= (3, 5), "This script requires at least Python 3.5"
980980

981-
parser = argparse.ArgumentParser()
982-
parser.add_argument("modules", nargs="*", help="Modules to test")
983-
parser.add_argument(
984-
"--check-typeshed", action="store_true", help="Check all stdlib modules in typeshed"
985-
)
986-
parser.add_argument(
987-
"--custom-typeshed-dir", metavar="DIR", help="Use the custom typeshed in DIR"
981+
parser = argparse.ArgumentParser(
982+
description="Compares stubs to objects introspected from the runtime."
988983
)
984+
parser.add_argument("modules", nargs="*", help="Modules to test")
985+
parser.add_argument("--concise", action="store_true", help="Make output concise")
989986
parser.add_argument(
990987
"--ignore-missing-stub",
991988
action="store_true",
@@ -996,6 +993,12 @@ def main() -> int:
996993
action="store_true",
997994
help="Ignore errors for whether an argument should or shouldn't be positional-only",
998995
)
996+
parser.add_argument(
997+
"--custom-typeshed-dir", metavar="DIR", help="Use the custom typeshed in DIR"
998+
)
999+
parser.add_argument(
1000+
"--check-typeshed", action="store_true", help="Check all stdlib modules in typeshed"
1001+
)
9991002
parser.add_argument(
10001003
"--whitelist",
10011004
action="append",
@@ -1006,7 +1009,6 @@ def main() -> int:
10061009
"whitelists. Whitelist can be created with --generate-whitelist"
10071010
),
10081011
)
1009-
parser.add_argument("--concise", action="store_true", help="Make output concise")
10101012
parser.add_argument(
10111013
"--generate-whitelist",
10121014
action="store_true",

0 commit comments

Comments
 (0)