test-bloom: check that we have expected arguments
commit1b4c57fa87e121f155863f898dc39d06cf4a1d99
authorJeff King <peff@peff.net>
Thu, 23 Apr 2020 20:59:14 +0000 (23 16:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Apr 2020 23:05:29 +0000 (23 16:05 -0700)
treec62e3e3db1548eb5eba5b0b1660dc808a7d0aedc
parent24b7d1e7b07aa1329d0d75f7922af8ef3e0782d2
test-bloom: check that we have expected arguments

If "test-tool bloom" is not fed a command, or if arguments are missing
for some commands, it will just segfault. Let's check argc and write a
friendlier usage message.

Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-bloom.c