4 psi.directory={PWD}:{PWD}/../../psi.d
7 extension_loaded("psi") or die("skip - need ext/psi");
8 function_exists("psi\\div") or die("skip - need psi\\div()");
17 "progname", "huh", "-v", "-x", 1, "-s", "foo", "--", "-gotcha", "--bar", "baz"
24 while (($opt = chr(psi\getopt($args, $opts)))) {
31 printf("got %s: %s\n", $opt, psi\optarg());
34 printf("error '%s'\n", $opt);
41 while ($pos < count($args)) {
42 printf("arg: %s\n", $args[$pos++]);