diff options
author | mm2 <marti.maria@littlecms.com> | 2020-11-04 22:58:35 +0300 |
---|---|---|
committer | mm2 <marti.maria@littlecms.com> | 2020-11-04 22:58:35 +0300 |
commit | 29559e0716cdcdb62bd5e5b074c5cb9a32a17595 (patch) | |
tree | bb38e3dc3636df43f0f8c2d807e1f925cf2d75ab /utils/common | |
parent | 75bd87ec8d2bca9dfc766e8067c22a3d72e968a2 (diff) |
updating to 2.12
Change resource compiler files for windows
try to add --help to command line utilities
Diffstat (limited to 'utils/common')
-rw-r--r-- | utils/common/xgetopt.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/common/xgetopt.c b/utils/common/xgetopt.c index 7f3dc54..a3511a6 100644 --- a/utils/common/xgetopt.c +++ b/utils/common/xgetopt.c @@ -32,13 +32,16 @@ int xgetopt(int argc, char *argv[], char *optionS) SW = '/'; } + if (argc > xoptind) { + if (letP == NULL) { if ((letP = argv[xoptind]) == NULL || *(letP++) != SW) goto gopEOF; - if (*letP == SW) { - xoptind++; goto gopEOF; - } + + //if (*letP == SW) { + // xoptind++; goto gopEOF; + //} } if (0 == (ch = *(letP++))) { xoptind++; goto gopEOF; |