Skip to content

Commit 042dfb8

Browse files
committed
fix when running from python -m
1 parent 8e1199a commit 042dfb8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

duckdb/query_graph/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def main() -> None: # noqa: D103
624624
description="""Given a json profile output, generate a html file showing the query graph and
625625
timings of operators""",
626626
)
627-
parser.add_argument("profile_input", help="profile input in json")
627+
parser.add_argument("--profile_input", help="profile input in json")
628628
parser.add_argument("--out", required=False, default=False)
629629
parser.add_argument("--open", required=False, action="store_true", default=True)
630630
args = parser.parse_args()
@@ -646,7 +646,7 @@ def main() -> None: # noqa: D103
646646

647647
open_output = args.open
648648

649-
translate_json_to_html(input, output)
649+
translate_json_to_html(input_file=input, output_file=output)
650650

651651
if open_output:
652652
webbrowser.open(f"file://{Path(output).resolve()}", new=2)

0 commit comments

Comments
 (0)