From: Kristoffer Haugsbakk Date: Mon, 03 Apr 2023 19:29:17 GMT Subject: Re: range-diff: slight usability problem with mistyped ref Message-ID: In-Reply-To: <818b3ad0-df43-3484-8c19-d95026f6b2b1@gmx.de> Hi Johannes and thanks for your reply On Tue, Mar 28, 2023, at 13:37, Johannes Schindelin wrote: > So even making the exact error message depend on the number of > arguments could result in misleading error message. Yeah, I see. It seems that the variadic nature of the command makes it difficult to guess what the user might have meant in all cases. > Do you have any splendid idea how to phrase the error message (or > adapt it to the concrete invocation)? No. I was going to look more closely at that if-else chain, but given the fact that I don’t know C and all the cases that would need to be covered (“what if the third argument happens to match both a ref and a file?”) I wouldn’t get anywhere. -- Kristoffer Haugsbakk