[PATCH 0 of 1 RFC] dispatch: make --help and --version work with the pager

Brodie Rao brodie at sf.io
Sun May 13 15:08:15 CDT 2012


This patch makes dispatch use runcommand() to invoke help and version when
--help and --version are passed in, allowing the output to page, and also
firing the pre- and post- command hooks.

However, I'm not sure the way I've fixed it is a nice approach. It feels like
there's a lot of duplicated setup work just to invoke a command. Does anyone
have any thoughts on simplifying it?


More information about the Mercurial-devel mailing list