diff options
| author | Chris Mayo <aklhfex@gmail.com> | 2019-03-24 11:56:35 +0000 |
|---|---|---|
| committer | Chris Mayo <aklhfex@gmail.com> | 2019-03-24 11:56:35 +0000 |
| commit | 1eadd02ac0b28486e98aed9407f27c4956619bae (patch) | |
| tree | 94cce7896e4abcaab0a1095600bf2e79c271fa31 /src | |
| parent | d089e17fde8a636198cf21f1045fc6bee20d987d (diff) | |
| download | PROJ-1eadd02ac0b28486e98aed9407f27c4956619bae.tar.gz PROJ-1eadd02ac0b28486e98aed9407f27c4956619bae.zip | |
Doc: consistently use +opt and brackets
+opt represents one parameter. An ellipsis indicates additional
instances of the previous parameter may be given.
Spaces are used between parameters and before an ellipsis, not purely to
format brackets. See man(1) SYNOPSIS conventions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/apps/cs2cs.cpp | 4 | ||||
| -rw-r--r-- | src/apps/geod.cpp | 2 | ||||
| -rw-r--r-- | src/apps/proj.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/apps/cs2cs.cpp b/src/apps/cs2cs.cpp index dafd06f8..b6a0f2ac 100644 --- a/src/apps/cs2cs.cpp +++ b/src/apps/cs2cs.cpp @@ -68,8 +68,8 @@ static const char *oform = static char oform_buffer[16]; /* buffer for oform when using -d */ static const char *oterr = "*\t*"; /* output line for unprojectable input */ static const char *usage = - "%s\nusage: %s [ -dDeEfIlrstvwW [args] ] [ +opts[=arg] ]\n" - " [+to [+opts[=arg] [ files ]\n"; + "%s\nusage: %s [-dDeEfIlrstvwW [args]] [+opt[=arg] ...]\n" + " [+to +opt[=arg] ...] [file ...]\n"; static double (*informat)(const char *, char **); /* input data deformatter function */ diff --git a/src/apps/geod.cpp b/src/apps/geod.cpp index 7225856e..b46188d3 100644 --- a/src/apps/geod.cpp +++ b/src/apps/geod.cpp @@ -22,7 +22,7 @@ static const char *osform = "%.3f"; /* output format for S */ static char pline[50]; /* work string */ static const char *usage = -"%s\nusage: %s [ -afFIlptwW [args] ] [ +opts[=arg] ] [ files ]\n"; +"%s\nusage: %s [-afFIlptwW [args]] [+opt[=arg] ...] [file ...]\n"; static void printLL(double p, double l) { diff --git a/src/apps/proj.cpp b/src/apps/proj.cpp index 40fc5695..5f0ee71f 100644 --- a/src/apps/proj.cpp +++ b/src/apps/proj.cpp @@ -45,7 +45,7 @@ static char oform_buffer[16]; /* Buffer for oform when using -d */ static const char *oterr = "*\t*", /* output line for unprojectable input */ - *usage = "%s\nusage: %s [ -bdeEfiIlmorsStTvVwW [args] ] [ +opts[=arg] ] [ files ]\n"; + *usage = "%s\nusage: %s [-bdeEfiIlmorsStTvVwW [args]] [+opt[=arg] ...] [file ...]\n"; static PJ_FACTORS facs; |
