forked from M-Labs/artiq
1
0
Fork 0

pdq2: fix commandline arguments

This commit is contained in:
Sebastien Bourdeauducq 2014-10-27 20:34:33 +08:00
parent 4d0e5db955
commit 1e5b05d4ec
2 changed files with 6 additions and 8 deletions

View File

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

View File

@ -332,12 +332,10 @@ 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("-p", "--port", default=8889, type=int,
parser.add_argument( help="TCP port to listen to")
"--port", default=8889, type=int,
help="TCP port to listen to")
parser.add_argument( parser.add_argument(
"-s", "--serial", default=None, "-s", "--serial", default=None,
help="device (FT245R) serial string [first]") help="device (FT245R) serial string [first]")