for Alias, make doc string say "at least x args" if there are optional args in addition to required args.

yay for cosmetic improvements. :)

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
Daniel Folkinshteyn 2010-04-14 10:56:39 -04:00 committed by James Vega
parent 8d64d08645
commit f880037e41

View File

@ -157,8 +157,11 @@ def makeNewAlias(name, alias):
return False return False
everythingReplace(tokens) everythingReplace(tokens)
self.Proxy(irc, msg, tokens) self.Proxy(irc, msg, tokens)
doc =format('<an alias, %n>\n\nAlias for %q.', flexargs = ''
(biggestDollar, 'argument'), alias) if biggestDollar and (wildcard or biggestAt):
flexargs = ' at least'
doc =format('<an alias,%s %n>\n\nAlias for %q.',
flexargs, (biggestDollar, 'argument'), alias)
f = utils.python.changeFunctionName(f, name, doc) f = utils.python.changeFunctionName(f, name, doc)
return f return f