From bd2f6ea9f91a569014283810841932558ef00869 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 25 Mar 2015 16:20:08 +0100 Subject: [PATCH] thorlabs_tcube_controller: use simple_network_args --- artiq/frontend/thorlabs_tcube_controller.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/artiq/frontend/thorlabs_tcube_controller.py b/artiq/frontend/thorlabs_tcube_controller.py index 90dbb12c3..d4dc18388 100755 --- a/artiq/frontend/thorlabs_tcube_controller.py +++ b/artiq/frontend/thorlabs_tcube_controller.py @@ -4,7 +4,7 @@ import argparse from artiq.devices.thorlabs_tcube.driver import Tdc, Tpz, TdcSim, TpzSim from artiq.protocols.pc_rpc import simple_server_loop -from artiq.tools import verbosity_args, init_logger +from artiq.tools import verbosity_args, simple_network_args, init_logger def get_argparser(): @@ -12,12 +12,9 @@ def get_argparser(): parser.add_argument("-P", "--product", required=True, help="type of the Thorlabs T-Cube device to control", choices=["TDC001", "TPZ001"]) - parser.add_argument("--bind", default="::1", - help="hostname or IP address to bind to") - parser.add_argument("-p", "--port", default=3255, type=int, - help="TCP port to listen to") parser.add_argument("-d", "--device", default=None, help="serial port. Omit for simulation mode.") + simple_network_args(parser, 3255) verbosity_args(parser) return parser