Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
savannahostrowski committed Dec 12, 2025
commit 1accb7b592905df7e9d8b3d165cc21389d79966e
21 changes: 0 additions & 21 deletions Lib/profiling/sampling/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,6 @@ def main():
parser = argparse.ArgumentParser(
description=_HELP_DESCRIPTION,
formatter_class=CustomFormatter,
add_help=False,
)
parser.add_argument(
"-h", "--help",
action="help",
default=argparse.SUPPRESS,
help="Show this help message and exit",
)

# Create subparsers for commands
Expand All @@ -505,7 +498,6 @@ def main():
"run",
help="Run and profile a script or module",
formatter_class=CustomFormatter,
add_help=False,
description="""Run and profile a Python script or module

Examples:
Expand All @@ -524,12 +516,6 @@ def main():
# Live interactive mode for a script
`python -m profiling.sampling run --live script.py`""",
)
run_parser.add_argument(
"-h", "--help",
action="help",
default=argparse.SUPPRESS,
help="Show this help message and exit",
)
run_parser.add_argument(
"-m",
"--module",
Expand Down Expand Up @@ -560,7 +546,6 @@ def main():
"attach",
help="Attach to and profile a running process",
formatter_class=CustomFormatter,
add_help=False,
description="""Attach to a running process and profile it

Examples:
Expand All @@ -570,12 +555,6 @@ def main():
# Live interactive mode for a running process
`python -m profiling.sampling attach --live 1234`""",
)
attach_parser.add_argument(
"-h", "--help",
action="help",
default=argparse.SUPPRESS,
help="Show this help message and exit",
)
attach_parser.add_argument(
"pid",
type=int,
Expand Down
Loading