diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-04-23 11:05:16 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-04-23 11:05:16 +0000 |
| commit | a10cd19d050f0e9e62486cdde897cb8d313614fd (patch) | |
| tree | 86a45018f4d32361bf4959dbf09a458c18bb70fa /sapi/cli | |
| parent | 6a73be6329c59ca0a6e8a35a7032a15b7337305b (diff) | |
| download | php-git-a10cd19d050f0e9e62486cdde897cb8d313614fd.tar.gz | |
MFH: fix long options
Diffstat (limited to 'sapi/cli')
| -rw-r--r-- | sapi/cli/getopt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sapi/cli/getopt.c b/sapi/cli/getopt.c index 0dd8a45f5b..4821a9c84d 100644 --- a/sapi/cli/getopt.c +++ b/sapi/cli/getopt.c @@ -145,7 +145,8 @@ int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **opta } return opts[opts_idx].opt_char; } else { - if (arg_start >= 2) { + /* multiple options specified as one (exclude long opts) */ + if (arg_start >= 2 && !((argv[*optind][0] == '-') && (argv[*optind][1] == '-'))) { if (!argv[*optind][optchr+1]) { dash = 0; |
