[PATCH 2 of 2 RFC] dispatch: look up command by [<space>:]<cmdname> syntax (PoC)
yuya at tcha.org
Sat Feb 24 20:42:03 EST 2018
On Sat, 24 Feb 2018 11:39:26 -0800, Gregory Szorc wrote:
> I will say that I believe we had general consensus at a previous sprint to
> implement proper support for sub-commands. This would allow us to implement
> arguments on individual show views. e.g. `hg show work --maxage 14d`. It
> could also be useful for commands like bookmarks and topics, which try to
> shoehorn lots of functionality into a single command. From a UX
> perspective, I think explicit verbs are better than dash prefixed arguments
> for controlling mode of operation. e.g. `hg bookmark delete foo` (possibly
> bad example due to BC concerns).
> If this is the direction we want to go in, I'd be hesitant to implement
> [alias] support unless we're sure it would be compatible with proper
Ah, okay, I didn't know the sub-command thingy. Let's revisit after that.
I don't wanna make the dispatcher more complicated.
More information about the Mercurial-devel