Re: [Alt. PATCH] ls-remote: deprecate -h as short for --heads
From: Junio C Hamano <hidden>
Date: 2017-10-24 00:53:07
René Scharfe [off-list ref] writes:
Am 21.10.2017 um 14:18 schrieb Junio C Hamano:quoted
René Scharfe [off-list ref] writes:quoted
FWIW, I use "-?" for that everywhere. I have yet to find a command or environment where it does something dangerous.Yeah, it would have made the world a better place if we made that choice back in 2008. If we start a transition to make it so right now, we might be able to make the world a better place by 2022, perhaps. I am not sure if the pain during the transition is worth it, though."-?" works fine with builtins already -- they complain that the option is unknown and then show the short help text.
Ah, I misunderstood what you meant, then. I thought you were advocating to move the built-in short-help support to know about and explicitly react to "-?", and somehow forgot that it "works" more or less already. The fact that "-?" already works for most things is good, but the transition pain still remains, as what's costly is to transition people's expectation (i.e. "'-?' and not '-h' is the way to get short help from any subcommand"), not the implementation to fill the gaps for those that do not yet support '-?', I am afraid.