Skip to content

Commit

Permalink
frontend/rpctool: fix -t/--target. Closes #283
Browse files Browse the repository at this point in the history
sbourdeauducq committed Feb 21, 2016
1 parent d713c62 commit ac6e31d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion artiq/frontend/artiq_rpctool.py
Original file line number Diff line number Diff line change
@@ -87,7 +87,10 @@ def main():
remote = Client(args.server, args.port, None)
targets, description = remote.get_rpc_id()
if args.action != "list-targets":
remote.select_rpc_target(AutoTarget)
if not args.target:
remote.select_rpc_target(AutoTarget)
else:
remote.select_rpc_target(args.target)

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

0 comments on commit ac6e31d

Please sign in to comment.