]> git.ipfire.org Git - thirdparty/git.git/commit - t/helper/test-tool.c
test-tool: show tool list on error
authorJeff King <peff@peff.net>
Wed, 17 Oct 2018 09:25:07 +0000 (05:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Oct 2018 03:27:39 +0000 (12:27 +0900)
commit4e26569d9870e61c95c6ce79c6d556358b9da433
tree7f1c31b12bbd1db101eb20bd56d64ce3570fffc9
parenta4b8ab5363a32f283a61ef3a962853556d136c0e
test-tool: show tool list on error

Before we switched to one big test-tool binary, if you
forgot the name of a tool, you could use tab-completion in
the shell to get a hint. But these days, all you get is:

  $ t/helper/test-tool approxidate
  fatal: There is no test named 'approxidate'

and you're stuck reading the source code to find it. Let's
print a list of the available tools in this case.

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-tool.c