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
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,10 @@ def main():
remote = Client(args.server, args.port, None) remote = Client(args.server, args.port, None)
targets, description = remote.get_rpc_id() targets, description = remote.get_rpc_id()
if args.action != "list-targets": 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": if args.action == "list-targets":
list_targets(targets, description) list_targets(targets, description)