am: preliminary support for hg patches
[gitweb.git] / t / t0040-parse-options.sh
index 8ca62ef453443e7c0f95e0e3cb3bb871b8273ed0..a40c1236c0862da4d77231bf9255b499ccddd99f 100755 (executable)
@@ -31,6 +31,7 @@ String options
 Magic arguments
     --quux                means --quux
     -NUM                  set integer to NUM
+    +                     same as -b
 
 Standard options
     --abbrev[=<n>]        use <n> digits to display SHA-1s
@@ -276,6 +277,12 @@ test_expect_success 'OPT_NEGBIT() works' '
        test_cmp expect output
 '
 
+test_expect_success 'OPT_BOOLEAN() with PARSE_OPT_NODASH works' '
+       test-parse-options + + + + + + > output 2> output.err &&
+       test ! -s output.err &&
+       test_cmp expect output
+'
+
 cat > expect <<EOF
 boolean: 0
 integer: 12345