4 psi.directory={PWD}:{PWD}/../../psi.d
7 PHP_OS === "Linux" or die("skip - only for Linux");
16 "progname", "huh", "-v", "-x", 1, "-s", "foo", "--", "-gotcha", "--bar", "baz"
21 for ($i = 0; $i<3; ++$i) {
25 while (($opt = chr(psi\getopt($args, $opts)))) {
32 printf("got %s: %s\n", $opt, psi\optarg());
35 printf("error '%s'\n", $opt);
41 $pos = psi\optind\get();
42 while ($pos < count($args)) {
43 printf("arg: %s\n", $args[$pos++]);