test-advise: check argument count with argc instead of argv
authorJeff King <redacted>
Wed, 30 Sep 2020 12:30:27 +0000 (08:30 -0400)
committerJunio C Hamano <redacted>
Wed, 30 Sep 2020 19:53:48 +0000 (12:53 -0700)
commit26e28fe7bbdf8b22ed096dfd76a9311e86ffb200
tree614b034dd10586c1d6ddb60614dd03067723396f
parent75d3bee15778a3aaeb8234023fc224838ac53181
test-advise: check argument count with argc instead of argv

We complain if "test-tool advise" is not given an argument, but we
quietly ignore any additional arguments it receives. Let's instead check
that we got the expected number. As a bonus, this silences
-Wunused-parameter, which notes that we don't ever look at argc.

While we're here, we can also fix the indentation in the conditional.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/helper/test-advise.c
git clone https://git.99rst.org/PROJECT