@@ -978,14 +978,11 @@ def strip_comments(s: str) -> str:
978
978
def main () -> int :
979
979
assert sys .version_info >= (3 , 5 ), "This script requires at least Python 3.5"
980
980
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."
988
983
)
984
+ parser .add_argument ("modules" , nargs = "*" , help = "Modules to test" )
985
+ parser .add_argument ("--concise" , action = "store_true" , help = "Make output concise" )
989
986
parser .add_argument (
990
987
"--ignore-missing-stub" ,
991
988
action = "store_true" ,
@@ -996,6 +993,12 @@ def main() -> int:
996
993
action = "store_true" ,
997
994
help = "Ignore errors for whether an argument should or shouldn't be positional-only" ,
998
995
)
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
+ )
999
1002
parser .add_argument (
1000
1003
"--whitelist" ,
1001
1004
action = "append" ,
@@ -1006,7 +1009,6 @@ def main() -> int:
1006
1009
"whitelists. Whitelist can be created with --generate-whitelist"
1007
1010
),
1008
1011
)
1009
- parser .add_argument ("--concise" , action = "store_true" , help = "Make output concise" )
1010
1012
parser .add_argument (
1011
1013
"--generate-whitelist" ,
1012
1014
action = "store_true" ,
0 commit comments