Skip to content

Commit 3adb1a2

Browse files
author
hauntsaninja
committed
stubtest: [minor] improve help message
1 parent 47f5b5f commit 3adb1a2

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
@@ -974,14 +974,11 @@ def strip_comments(s: str) -> str:
974974
def main() -> int:
975975
assert sys.version_info >= (3, 5), "This script requires at least Python 3.5"
976976

977-
parser = argparse.ArgumentParser()
978-
parser.add_argument("modules", nargs="*", help="Modules to test")
979-
parser.add_argument(
980-
"--check-typeshed", action="store_true", help="Check all stdlib modules in typeshed"
981-
)
982-
parser.add_argument(
983-
"--custom-typeshed-dir", metavar="DIR", help="Use the custom typeshed in DIR"
977+
parser = argparse.ArgumentParser(
978+
description="Compares stubs to objects introspected from the runtime."
984979
)
980+
parser.add_argument("modules", nargs="*", help="Modules to test")
981+
parser.add_argument("--concise", action="store_true", help="Make output concise")
985982
parser.add_argument(
986983
"--ignore-missing-stub",
987984
action="store_true",
@@ -992,6 +989,12 @@ def main() -> int:
992989
action="store_true",
993990
help="Ignore errors for whether an argument should or shouldn't be positional-only",
994991
)
992+
parser.add_argument(
993+
"--custom-typeshed-dir", metavar="DIR", help="Use the custom typeshed in DIR"
994+
)
995+
parser.add_argument(
996+
"--check-typeshed", action="store_true", help="Check all stdlib modules in typeshed"
997+
)
995998
parser.add_argument(
996999
"--whitelist",
9971000
action="append",
@@ -1002,7 +1005,6 @@ def main() -> int:
10021005
"whitelists. Whitelist can be created with --generate-whitelist"
10031006
),
10041007
)
1005-
parser.add_argument("--concise", action="store_true", help="Make output concise")
10061008
parser.add_argument(
10071009
"--generate-whitelist",
10081010
action="store_true",

0 commit comments

Comments
 (0)