summaryrefslogtreecommitdiff
path: root/test/it.t
diff options
context:
space:
mode:
authorNathan Gass2024-02-21 10:22:32 +0100
committerNathan Gass2024-02-21 10:22:32 +0100
commit486126e92b87d9ca32ae2596f74054c234cd7a19 (patch)
tree6c682bbdb050b8d42725d28cf7d8c70b944a68ca /test/it.t
parent19a29ba848ac66fedbbb7059df09f93675e48a26 (diff)
downloaditools-486126e92b87d9ca32ae2596f74054c234cd7a19.tar.gz
itools-486126e92b87d9ca32ae2596f74054c234cd7a19.tar.bz2
itools-486126e92b87d9ca32ae2596f74054c234cd7a19.zip
it::getopt: do not eat up second --
Diffstat (limited to 'test/it.t')
-rwxr-xr-xtest/it.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/it.t b/test/it.t
index 3003ccf..992a81f 100755
--- a/test/it.t
+++ b/test/it.t
@@ -565,6 +565,7 @@ function requesturi($teststring, $expect)
_getopt(["val"], ['foo' => "val"]);
_getopt(["--", "-val"], ['foo' => "-val"]);
+_getopt(["--", "--"], ['foo' => "--"]);
_getopt(["-v", "val"], ['verbose' => true, 'foo' => "val"]);
_getopt(["--verbose", "val"], ['verbose' => true, 'foo' => "val"]);
_getopt(["-vw", "val"], ['verbose' => true, 'werbose' => true, 'foo' => "val"]);