From e1dab8c45403fddfd34aff08db1030a568041e30 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 21 Jul 2022 19:30:56 +0200 Subject: Use ... instead of * in cmdline syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 6 +++--- blue | 6 +++--- blue.1 | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README b/README index 36cf593..4bc832c 100644 --- a/README +++ b/README @@ -2,9 +2,9 @@ NAME blue - Creates table of when the blue hour etc. occurs SYNPOSIS - blue [-d delev]* [-D delev]* [-e elev]* [-m elev]* [-h [-L] | -u | -L] - [-l lat:lon | -l loc] [-s year-month-day | -s -] [-r num[h|m|s]] - [-bBgGnN] + blue [-d delev] ... [-D delev] ... [-e elev] ... [-m elev] ... + [-h [-L] | -u | -L] [-l lat:lon | -l loc] [-s year-month-day | -s -] + [-r num[h|m|s]] [-bBgGnN] DESCRIPTION blue prints a list of time point when the select event occurs. diff --git a/blue b/blue index a10e3e8..17b3fbe 100755 --- a/blue +++ b/blue @@ -26,9 +26,9 @@ res = '1s' ## Parse command line argv0 = sys.argv[0] if len(sys.argv) > 0 else 'blue' def usage(): - opts = '[-d delev]* [-D delev]* [-e elev]* [-m elev]* [-h [-L] | -u | -L]' - opts += ' [-l lat:lon | -l loc] [-s year-month-day | -s -] [-r num[h|m|s]]' - opts += ' [-bBgGnN]' + opts = '[-d delev] ... [-D delev] ... [-e elev]* [-m elev] ...' + opts += ' [-h [-L] | -u | -L] [-l lat:lon | -l loc] [-s year-month-day | -s -]' + opts += ' [-r num[h|m|s]] [-bBgGnN]' print('Usage: %s %s' % (argv0, opts), file = sys.stderr) sys.exit(1) i, n = 1, len(sys.argv) diff --git a/blue.1 b/blue.1 index 6a16d69..106aefd 100644 --- a/blue.1 +++ b/blue.1 @@ -3,9 +3,9 @@ blue - Creates table of when the blue hour etc. occurs .SH "SYNPOSIS" .nf -\fBblue\fP [\fB-d\fP \fIdelev\fP]* [\fB-D\fP \fIdelev\fP]* [\fB-e\fP \fIelev\fP]* [\fB-m\fP \fIelev\fP]* [\fB-h\fP [\fB-L\fP] | \fB-u\fP | \fB-L\fP] - [\fB-l\fP \fIlat\fP\fB:\fP\fIlon\fP | \fB-l\fP \fIloc\fP] [\fB-s\fP \fIyear\fP\fB-\fP\fImonth\fP\fB-\fP\fIday\fP | \fB-s\fP \fB-\fP] [\fB-r\fP \fInum\fP[\fBh\fP|\fBm\fP|\fBs\fP]] - [\fB-bBgGnN\fP] +\fBblue\fP [\fB-d\fP \fIdelev\fP] ... [\fB-D\fP \fIdelev\fP] ... [\fB-e\fP \fIelev\fP] ... [\fB-m\fP \fIelev\fP] ... + [\fB-h\fP [\fB-L\fP] | \fB-u\fP | \fB-L\fP] [\fB-l\fP \fIlat\fP\fB:\fP\fIlon\fP | \fB-l\fP \fIloc\fP] [\fB-s\fP \fIyear\fP\fB-\fP\fImonth\fP\fB-\fP\fIday\fP | \fB-s\fP \fB-\fP] + [\fB-r\fP \fInum\fP[\fBh\fP|\fBm\fP|\fBs\fP]] [\fB-bBgGnN\fP] .fi .SH "DESCRIPTION" .B blue -- cgit v1.2.3-70-g09d2