Skip to content

Commit 69e8d32

Browse files
committed
small fix
1 parent d7249cf commit 69e8d32

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/trace.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ def local_trace(frame: types.FrameType, event: str, arg: Any):
203203
def main(argv: List[str] | None = None) -> None:
204204
"""Entry point for the command line interface."""
205205

206-
if argv is None:
207-
argv = sys.argv[1:]
208-
209206
if len(argv) < 1:
210207
raise SystemExit("Usage: codetracer-record <program.py>")
211208

@@ -222,4 +219,4 @@ def main(argv: List[str] | None = None) -> None:
222219

223220

224221
if __name__ == "__main__": # pragma: no cover - CLI passthrough
225-
main()
222+
main(sys.argv[1:])

0 commit comments

Comments
 (0)