aboutsummaryrefslogtreecommitdiff
path: root/src/optargpm.h
diff options
context:
space:
mode:
authorThomas Knudsen <busstoptaktik@users.noreply.github.com>2017-10-27 22:50:40 +0200
committerGitHub <noreply@github.com>2017-10-27 22:50:40 +0200
commit5646ff12f32adf78e2bc187e6557ce64e4e04b39 (patch)
tree508d648e1ed084a8d3aa20de7d99ec78bd9fe363 /src/optargpm.h
parent9649cc099728162c4c8862b7d5a69d0dfee92c1d (diff)
downloadPROJ-5646ff12f32adf78e2bc187e6557ce64e4e04b39.tar.gz
PROJ-5646ff12f32adf78e2bc187e6557ce64e4e04b39.zip
Linguistics: Clarify this and that, here and there (#632)
* Linguistics: Clarify this and that, here and there * Revert nullification of PJ_cart->fwd, inv
Diffstat (limited to 'src/optargpm.h')
-rw-r--r--src/optargpm.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/optargpm.h b/src/optargpm.h
index c47dfec1..23e375f8 100644
--- a/src/optargpm.h
+++ b/src/optargpm.h
@@ -10,8 +10,8 @@
For PROJ.4 command line programs, we have a somewhat complex option
decoding situation, since we have to navigate in a cocktail of classic
single letter style options, prefixed by "-", GNU style long options
-prefixwd by "--", transformation specification elements prefixed by "+",
-and input file names prefixed by "" nothing.
+prefixed by "--", transformation specification elements prefixed by "+",
+and input file names prefixed by "" (i.e. nothing).
Hence, classic getopt.h style decoding does not cut the mustard, so
this is an attempt to catch up and chop the ketchup.
@@ -48,8 +48,8 @@ Operator specs are +proj=utm +zone=32 +ellps=GRS80
Operands are bar baz
-While claiming neither to save the world, nor to hint at the "shape of
-jazz to come", at least optargpm has shown useful in constructing cs2cs
+While neither claiming to save the world, nor to hint at the "shape of
+jazz to come", at least optargpm has shown useful in constructing cs2cs
style transformation filters.
Supporting a wide range of option syntax, the getoptpm API is somewhat
@@ -424,14 +424,6 @@ OPTARGS *opt_parse (int argc, char **argv, const char *flags, const char *keys,
o->argc = argc;
o->argv = argv;
o->progname = opt_strip_path (argv[0]);
-/* o->progname = argv[0];
- last_path_delim = strrchr (argv[0], '\\');
- if (last_path_delim > o->progname)
- o->progname = last_path_delim;
- last_path_delim = strrchr (argv[0], '/');
- if (last_path_delim > o->progname)
- o->progname = last_path_delim;
-*/
/* Reset all flags */
for (i = 0; i < (int) strlen (flags); i++)