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