summaryrefslogtreecommitdiff
path: root/t/t1502-rev-parse-parseopt.sh
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivano@gnu.org>2010-05-17 15:34:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-01 01:06:41 (GMT)
commit9c7304e3e39ed397b3cc6566573333e2698a52b4 (patch)
treefb0b9f66cd82761e67ae77074c973acb4bf6fa1a /t/t1502-rev-parse-parseopt.sh
parent81fa024cd8e336ba257f13fe7724b95baacfa3ad (diff)
downloadgit-9c7304e3e39ed397b3cc6566573333e2698a52b4.zip
git-9c7304e3e39ed397b3cc6566573333e2698a52b4.tar.gz
git-9c7304e3e39ed397b3cc6566573333e2698a52b4.tar.bz2
print the usage string on stdout instead of stderr
When -h is used, print usage messages on stdout. If a command is invoked with wrong arguments then print the usage messages on stderr. Signed-off-by: Giuseppe Scrivano <gscrivano@gnu.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1502-rev-parse-parseopt.sh')
-rwxr-xr-xt/t1502-rev-parse-parseopt.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t1502-rev-parse-parseopt.sh b/t/t1502-rev-parse-parseopt.sh
index e504058..660487d 100755
--- a/t/t1502-rev-parse-parseopt.sh
+++ b/t/t1502-rev-parse-parseopt.sh
@@ -3,7 +3,7 @@
test_description='test git rev-parse --parseopt'
. ./test-lib.sh
-cat > expect.err <<EOF
+cat > expect <<EOF
usage: some-command [options] <args>...
some-command does foo and bar!
@@ -38,8 +38,8 @@ extra1 line above used to cause a segfault but no longer does
EOF
test_expect_success 'test --parseopt help output' '
- git rev-parse --parseopt -- -h 2> output.err < optionspec
- test_cmp expect.err output.err
+ git rev-parse --parseopt -- -h > output < optionspec
+ test_cmp expect output
'
cat > expect <<EOF