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