From c303a22a51774609869aa7832a0089afa517722a Mon Sep 17 00:00:00 2001 From: James Hewitt-Thomas Date: Tue, 19 Nov 2024 17:09:53 +0000 Subject: [PATCH] Mark -M as a required parameter Signed-off-by: James Hewitt-Thomas --- README | 8 ++++---- autossh.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README b/README index a07c2fe..bb1a9e4 100644 --- a/README +++ b/README @@ -17,7 +17,7 @@ Look at autossh.host for an example wrapper script. Usage ----- - autossh [-M [:echo_port]] [-f] [SSH OPTIONS] + autossh [-V] [-f] -M [SSH OPTIONS] Description ----------- @@ -40,9 +40,9 @@ situations where using an echo service may not be possible. autossh has only three arguments of its own: - -M [:echo_port], to specify the base monitoring port to use, or - alternatively, to specify the monitoring port and echo service - port to use. + -M <monitor_port[:echo_port]>, to specify the base monitoring port + to use, or alternatively, to specify the monitoring port and echo + service port to use. When no echo service port is specified, this port and the port immediately above it (port# + 1) should be something nothing diff --git a/autossh.c b/autossh.c index e2e3b84..faceaf7 100644 --- a/autossh.c +++ b/autossh.c @@ -188,7 +188,7 @@ void usage(int code) { fprintf(code ? stderr : stdout, - "usage: %s [-V] [-M monitor_port[:echo_port]] [-f] [SSH_OPTIONS]\n", + "usage: %s [-V] [-f] -M [SSH_OPTIONS]\n", __progname); if (code) { fprintf(stderr, "\n");