]> granicus.if.org Git - re2c/commitdiff
- More commandline argument parsingfixes merged from PHP
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 23 Apr 2007 21:06:56 +0000 (21:06 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 23 Apr 2007 21:06:56 +0000 (21:06 +0000)
re2c/mbo_getopt.cc

index 6cf375788adc7bd524b361341e86043de69dfcac..95b3c7fa1ab760655ef63cfc134b1be63db13fdb 100755 (executable)
@@ -181,7 +181,7 @@ int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct *opts, char **o
        }
        else
        {
-               if (arg_start >= 2)
+               if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-')))
                {
                        if (!argv[*optind][optchr + 1])
                        {