Thread (24 messages) flat view 24 messages, 9 authors, 2016-08-26

Re: [PATCH 1/2] help: introduce option --command-only

From: Ralf Thielow <hidden>
Date: 2016-08-23 17:37:06

Possibly related (same subject, not in this thread)

2016-08-19 10:39 GMT+02:00 Remi Galan Alfonso
[off-list ref]:
Hi Ralf,

Ralf Thielow [off-list ref] writes:
quoted
[...]
+test_expect_success "works for commands and guides by default" "
+        git help status &&
+        git help revisions
+"
+
+test_expect_success "--command-only does not work for guides" "
+        git help --command-only status &&
+        cat <<-EOF >expected &&
+                git: 'revisions' is not a git command. See 'git --help'.
+        EOF
+        (git help --command-only revisions 2>actual || true) &&
I think you want to use
  `test_must_fail git help --command-only revisions 2>actual`
here to make sure that the command does fail.
Thanks!
Thanks,
Rémi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help