--TEST-- getopt --INI-- psi.directory={PWD}:{PWD}/../../psi.d --SKIPIF-- --ENV-- POSIXLY_CORRECT= --FILE-- ===TEST=== ===DONE=== --EXPECT-- ===TEST=== got v got x: 1 got s: foo arg: huh arg: -gotcha arg: --bar arg: baz got v got x: 1 got s: foo arg: huh arg: -gotcha arg: --bar arg: baz got v got x: 1 got s: foo arg: huh arg: -gotcha arg: --bar arg: baz array(11) { [0]=> string(8) "progname" [1]=> string(2) "-v" [2]=> string(2) "-x" [3]=> string(1) "1" [4]=> string(2) "-s" [5]=> string(3) "foo" [6]=> string(2) "--" [7]=> string(3) "huh" [8]=> string(7) "-gotcha" [9]=> string(5) "--bar" [10]=> string(3) "baz" } ===DONE===