From a0ea83c98a6866a6704e40e797a2c5ea9df1b065 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 23 Oct 2014 19:07:36 +0800 Subject: [PATCH] frontend/client: connection parameters --- frontend/artiq | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/artiq b/frontend/artiq index 4f1caf32c..2ad149a19 100755 --- a/frontend/artiq +++ b/frontend/artiq @@ -7,6 +7,12 @@ from artiq.management.pc_rpc import Client def _get_args(): parser = argparse.ArgumentParser(description="ARTIQ client") + parser.add_argument( + "-s", "--server", default="::1", + help="hostname or IP of the master to connect to") + parser.add_argument( + "--port", default=8888, type=int, + help="TCP port to use to connect to the master") parser.add_argument( "-o", "--run-once", default=[], nargs=3, action="append", @@ -20,7 +26,7 @@ def _get_args(): def main(): args = _get_args() - remote = Client("::1", 8888) + remote = Client(args.server, args.port) try: for path, name, timeout in args.run_once: remote.run_once(