From ac6e31d655a7361bb082f4c80da464f283ac8f8f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 22 Feb 2016 00:55:45 +0800 Subject: [PATCH] frontend/rpctool: fix -t/--target. Closes #283 --- artiq/frontend/artiq_rpctool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_rpctool.py b/artiq/frontend/artiq_rpctool.py index 3328ccd6f..58514f881 100755 --- a/artiq/frontend/artiq_rpctool.py +++ b/artiq/frontend/artiq_rpctool.py @@ -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)