Skip to content

Commit 9f71013

Browse files
committed
explicitly pass args to the stay-connected menu from the run function
1 parent 7a1ca00 commit 9f71013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pybricksdev/cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,15 +414,15 @@ def is_pybricks_usb(dev):
414414
await hub.download(script_path)
415415

416416
if args.stay_connected:
417-
await self.stay_connected_menu(hub)
417+
await self.stay_connected_menu(hub, args)
418418

419419
except SyntaxError as e:
420420
print()
421421
print("A syntax error occurred while parsing your program:")
422422
print(e)
423423
print()
424424
if args.stay_connected:
425-
await self.stay_connected_menu(hub)
425+
await self.stay_connected_menu(hub, args)
426426

427427
finally:
428428
await hub.disconnect()

0 commit comments

Comments
 (0)