mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Made only-syntax return without the parentheses.
This commit is contained in:
parent
83c0d344bf
commit
ff8159c91e
@ -122,11 +122,11 @@ def getHelp(method, name=None):
|
||||
if name is None:
|
||||
name = method.__name__
|
||||
doclines = method.__doc__.splitlines()
|
||||
s = '(%s %s)' % (name, doclines.pop(0))
|
||||
s = '%s %s' % (name, doclines.pop(0))
|
||||
if doclines:
|
||||
doclines = imap(str.strip, ifilter(None, doclines))
|
||||
help = ' '.join(doclines)
|
||||
s = '%s -- %s' % (ircutils.bold(s), help)
|
||||
s = '(%s) -- %s' % (ircutils.bold(s), help)
|
||||
return s
|
||||
|
||||
def getSyntax(method, name=None):
|
||||
|
Loading…
Reference in New Issue
Block a user