frontend/rpctool: fix -t/--target. Closes #283

This commit is contained in:
Sebastien Bourdeauducq 2016-02-22 00:55:45 +08:00
parent d713c62b50
commit ac6e31d655

View File

@ -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)