]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0012-help.sh
help: make option --help open man pages only for Git commands
[thirdparty/git.git] / t / t0012-help.sh
index 920a663c3e254ec29fb2bcac2f403719ac435119..8faba2e8bc52a2611eb55dbd807f9eba34748698 100755 (executable)
@@ -41,4 +41,12 @@ test_expect_success "--exclude-guides does not work for guides" '
        test_must_be_empty test-browser.log
 '
 
+test_expect_success "--help does not work for guides" "
+       cat <<-EOF >expect &&
+               git: 'revisions' is not a git command. See 'git --help'.
+       EOF
+       test_must_fail git revisions --help 2>actual &&
+       test_i18ncmp expect actual
+"
+
 test_done