forked from M-Labs/artiq
frontend/rpctool: fix -t/--target. Closes #283
This commit is contained in:
parent
d713c62b50
commit
ac6e31d655
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user