mirror of https://github.com/m-labs/artiq.git
pdq2: fix commandline arguments
This commit is contained in:
parent
4d0e5db955
commit
1e5b05d4ec
|
@ -16,9 +16,9 @@ def _get_args():
|
||||||
Evaluates times and voltages, interpolates and uploads
|
Evaluates times and voltages, interpolates and uploads
|
||||||
them to the controller.""")
|
them to the controller.""")
|
||||||
parser.add_argument("-s", "--server", default="::1",
|
parser.add_argument("-s", "--server", default="::1",
|
||||||
help="hostname or IP of the master to connect to")
|
help="hostname or IP of the controller to connect to")
|
||||||
parser.add_argument("--port", default=8889, type=int,
|
parser.add_argument("--port", default=8889, type=int,
|
||||||
help="TCP port to use to connect to the master")
|
help="TCP port to use to connect to the controller")
|
||||||
parser.add_argument("-c", "--channel", default=0, type=int,
|
parser.add_argument("-c", "--channel", default=0, type=int,
|
||||||
help="channel: 3*board_num+dac_num [%(default)s]")
|
help="channel: 3*board_num+dac_num [%(default)s]")
|
||||||
parser.add_argument("-f", "--frame", default=0, type=int,
|
parser.add_argument("-f", "--frame", default=0, type=int,
|
||||||
|
|
|
@ -332,11 +332,9 @@ class Pdq2:
|
||||||
|
|
||||||
def _get_args():
|
def _get_args():
|
||||||
parser = argparse.ArgumentParser(description="PDQ2 controller")
|
parser = argparse.ArgumentParser(description="PDQ2 controller")
|
||||||
parser.add_argument(
|
parser.add_argument("--bind", default="::1",
|
||||||
"--bind", default="::1",
|
|
||||||
help="hostname or IP address to bind to")
|
help="hostname or IP address to bind to")
|
||||||
parser.add_argument(
|
parser.add_argument("-p", "--port", default=8889, type=int,
|
||||||
"--port", default=8889, type=int,
|
|
||||||
help="TCP port to listen to")
|
help="TCP port to listen to")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-s", "--serial", default=None,
|
"-s", "--serial", default=None,
|
||||||
|
|
Loading…
Reference in New Issue