Skip to content

Commit ac6e31d

Browse files
committedFeb 21, 2016
frontend/rpctool: fix -t/--target. Closes #283
1 parent d713c62 commit ac6e31d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

Diff for: ‎artiq/frontend/artiq_rpctool.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ def main():
8787
remote = Client(args.server, args.port, None)
8888
targets, description = remote.get_rpc_id()
8989
if args.action != "list-targets":
90-
remote.select_rpc_target(AutoTarget)
90+
if not args.target:
91+
remote.select_rpc_target(AutoTarget)
92+
else:
93+
remote.select_rpc_target(args.target)
9194

9295
if args.action == "list-targets":
9396
list_targets(targets, description)

0 commit comments

Comments
 (0)