Denys Vlasenko | 81f962f | 2017-08-11 02:05:21 +0200 | [diff] [blame] | 1 | *** no OPTIND, optstring:'w:et' args:-q -w e -r -t -y |
| 2 | ./getopt_optarg.tests: invalid option -- q |
| 3 | var:'?' OPTIND:2 OPTARG:'' |
| 4 | var:'w' OPTIND:4 OPTARG:'e' |
| 5 | ./getopt_optarg.tests: invalid option -- r |
| 6 | var:'?' OPTIND:5 OPTARG:'' |
| 7 | var:'t' OPTIND:6 OPTARG:'' |
| 8 | ./getopt_optarg.tests: invalid option -- y |
| 9 | var:'?' OPTIND:7 OPTARG:'' |
| 10 | exited: var:'?' OPTIND:7 OPTARG:'' |
| 11 | *** OPTIND=0, optstring:'w:et' args:-w 1 -w2 -w -e -e -t -t |
| 12 | var:'w' OPTIND:3 OPTARG:'1' |
| 13 | var:'w' OPTIND:4 OPTARG:'2' |
| 14 | var:'w' OPTIND:6 OPTARG:'-e' |
| 15 | var:'e' OPTIND:7 OPTARG:'' |
| 16 | var:'t' OPTIND:8 OPTARG:'' |
| 17 | var:'t' OPTIND:9 OPTARG:'' |
| 18 | exited: var:'?' OPTIND:9 OPTARG:'' |