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

yay for cosmetic improvements. :)
This commit is contained in:
Daniel Folkinshteyn 2010-04-14 10:56:39 -04:00
parent aa634e6da1
commit 4890e2e80d

View File

@ -157,8 +157,11 @@ def makeNewAlias(name, alias):
return False
everythingReplace(tokens)
self.Proxy(irc, msg, tokens)
doc =format('<an alias, %n>\n\nAlias for %q.',
(biggestDollar, 'argument'), alias)
flexargs = ''
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)
return f