diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-21 19:30:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-21 19:30:56 +0200 |
commit | e1dab8c45403fddfd34aff08db1030a568041e30 (patch) | |
tree | 4f3b6d3daf4406421fabe7f2533661547cc92dfd | |
parent | m (diff) | |
download | blue-e1dab8c45403fddfd34aff08db1030a568041e30.tar.gz blue-e1dab8c45403fddfd34aff08db1030a568041e30.tar.bz2 blue-e1dab8c45403fddfd34aff08db1030a568041e30.tar.xz |
Use ... instead of * in cmdline syntax
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | README | 6 | ||||
-rwxr-xr-x | blue | 6 | ||||
-rw-r--r-- | blue.1 | 6 |
3 files changed, 9 insertions, 9 deletions
@@ -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. @@ -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) @@ -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 |