Skip to content

Commit

Permalink
cli: fix attaching when supplying a pid
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jul 14, 2024
1 parent 2fc0dc2 commit ee64412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hilda/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def attach(name: Optional[str], pid: Optional[int], startup_files: List[str]) ->
if name is not None:
hilda_client = create_hilda_client_using_attach_by_name(name)
elif pid is not None:
hilda_client = create_hilda_client_using_attach_by_pid(name)
hilda_client = create_hilda_client_using_attach_by_pid(pid)
else:
raise click.UsageError('You must specify a process name or pid')
hilda_client.interact(startup_files=startup_files)
Expand Down

0 comments on commit ee64412

Please sign in to comment.