From 4890e2e80dddf493f5ed20adc92523a9a7a86f03 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Wed, 14 Apr 2010 10:56:39 -0400 Subject: [PATCH] for Alias, make doc string say "at least x args" if there are optional args in addition to required args. yay for cosmetic improvements. :) --- plugins/Alias/plugin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/Alias/plugin.py b/plugins/Alias/plugin.py index 9021b6809..2b14b6527 100644 --- a/plugins/Alias/plugin.py +++ b/plugins/Alias/plugin.py @@ -157,8 +157,11 @@ def makeNewAlias(name, alias): return False everythingReplace(tokens) self.Proxy(irc, msg, tokens) - doc =format('\n\nAlias for %q.', - (biggestDollar, 'argument'), alias) + flexargs = '' + if biggestDollar and (wildcard or biggestAt): + flexargs = ' at least' + doc =format('\n\nAlias for %q.', + flexargs, (biggestDollar, 'argument'), alias) f = utils.python.changeFunctionName(f, name, doc) return f