Code

merge-base-many: add trivial tests based on the documentation
[git.git] / t / t0040-parse-options.sh
index 6309aed4511738b2f68e16974a5a5ceadf2617e5..03dbe00102626e05c37e45d8a3b1364b99644942 100755 (executable)
@@ -78,6 +78,13 @@ test_expect_success 'long options' '
        test_cmp expect output
 '
 
+test_expect_success 'missing required value' '
+       test-parse-options -s;
+       test $? = 129 &&
+       test-parse-options --string;
+       test $? = 129
+'
+
 cat > expect << EOF
 boolean: 1
 integer: 13