From 17596f4ad894d502fda43a4e2b4cedbc2eeb7352 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 15 Feb 2015 14:58:57 -0700 Subject: [PATCH] tools,frontend: print default ports --- artiq/frontend/artiq_master.py | 4 ++-- artiq/tools.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/artiq/frontend/artiq_master.py b/artiq/frontend/artiq_master.py index 32a8c1000..e38dfc8ec 100755 --- a/artiq/frontend/artiq_master.py +++ b/artiq/frontend/artiq_master.py @@ -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 diff --git a/artiq/tools.py b/artiq/tools.py index f8e5a24b7..cc29c0039 100644 --- a/artiq/tools.py +++ b/artiq/tools.py @@ -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):