[PATCH] displaying command options

Matt Mackall mpm at selenic.com
Tue Jun 7 17:46:51 UTC 2005


On Tue, Jun 07, 2005 at 11:26:25AM -0400, Andrew Thompson wrote:
> 
> I think that the proper thing to do is use fancyopts.help(), so I've 
> beat it into submission with the attached patch.

Maybe, or maybe it's better to move the fancyopts bits to
commands:help().

> Please comment on if I've used anything in an abnormal or distasteful 
> manner. (I'm still learning Python.)
> 
> Thanks.
> 
> -- 
> Andrew Thompson
> http://aktzero.com/


> +            args = []
> +            args = fancyopts.fancyopts(args, i[1], options, syntax, 1)

How about just :

	       fancyopts.fancyopts([], i[1], options, syntax, 1)

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list