2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

tools,frontend: print default ports

This commit is contained in:
Sebastien Bourdeauducq 2015-02-15 14:58:57 -07:00
parent 79a5d8a12a
commit 17596f4ad8
2 changed files with 4 additions and 3 deletions

View File

@ -22,10 +22,10 @@ def get_argparser():
help="hostname or IP address to bind to")
group.add_argument(
"--port-notify", default=3250, type=int,
help="TCP port to listen to for notifications")
help="TCP port to listen to for notifications (default: 3250)")
group.add_argument(
"--port-control", default=3251, type=int,
help="TCP port to listen to for control")
help="TCP port to listen to for control (default: 3251)")
verbosity_args(parser)
return parser

View File

@ -43,7 +43,8 @@ def simple_network_args(parser, default_port):
group.add_argument("--bind", default="::1",
help="hostname or IP address to bind to")
group.add_argument("-p", "--port", default=default_port, type=int,
help="TCP port to listen to")
help="TCP port to listen to (default: {})"
.format(default_port))
def init_logger(args):