range-diff: consistently validate the arguments
commit0087d7dfbebf10f23394f32db3c283eb7ab03129
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 26 Aug 2022 09:39:29 +0000 (26 09:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Aug 2022 16:49:25 +0000 (26 09:49 -0700)
tree8ac7f36f2ba746af517f24013c967d96cd38ebbd
parentedd6a31f46096824f792f0fad5532c8d444c4c05
range-diff: consistently validate the arguments

This patch lets `range-diff` validate the arguments not only when
invoked with one or two arguments, but also in the code path where three
arguments are handled.

While at it, we now use `usage_msg_opt*()` consistently.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/range-diff.c