@@ -486,13 +486,6 @@ def main():
486486 parser = argparse .ArgumentParser (
487487 description = _HELP_DESCRIPTION ,
488488 formatter_class = CustomFormatter ,
489- add_help = False ,
490- )
491- parser .add_argument (
492- "-h" , "--help" ,
493- action = "help" ,
494- default = argparse .SUPPRESS ,
495- help = "Show this help message and exit" ,
496489 )
497490
498491 # Create subparsers for commands
@@ -505,7 +498,6 @@ def main():
505498 "run" ,
506499 help = "Run and profile a script or module" ,
507500 formatter_class = CustomFormatter ,
508- add_help = False ,
509501 description = """Run and profile a Python script or module
510502
511503Examples:
@@ -524,12 +516,6 @@ def main():
524516 # Live interactive mode for a script
525517 `python -m profiling.sampling run --live script.py`""" ,
526518 )
527- run_parser .add_argument (
528- "-h" , "--help" ,
529- action = "help" ,
530- default = argparse .SUPPRESS ,
531- help = "Show this help message and exit" ,
532- )
533519 run_parser .add_argument (
534520 "-m" ,
535521 "--module" ,
@@ -560,7 +546,6 @@ def main():
560546 "attach" ,
561547 help = "Attach to and profile a running process" ,
562548 formatter_class = CustomFormatter ,
563- add_help = False ,
564549 description = """Attach to a running process and profile it
565550
566551Examples:
@@ -570,12 +555,6 @@ def main():
570555 # Live interactive mode for a running process
571556 `python -m profiling.sampling attach --live 1234`""" ,
572557 )
573- attach_parser .add_argument (
574- "-h" , "--help" ,
575- action = "help" ,
576- default = argparse .SUPPRESS ,
577- help = "Show this help message and exit" ,
578- )
579558 attach_parser .add_argument (
580559 "pid" ,
581560 type = int ,
0 commit comments