mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +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:
|
if name is None:
|
||||||
name = method.__name__
|
name = method.__name__
|
||||||
doclines = method.__doc__.splitlines()
|
doclines = method.__doc__.splitlines()
|
||||||
s = '(%s %s)' % (name, doclines.pop(0))
|
s = '%s %s' % (name, doclines.pop(0))
|
||||||
if doclines:
|
if doclines:
|
||||||
doclines = imap(str.strip, ifilter(None, doclines))
|
doclines = imap(str.strip, ifilter(None, doclines))
|
||||||
help = ' '.join(doclines)
|
help = ' '.join(doclines)
|
||||||
s = '%s -- %s' % (ircutils.bold(s), help)
|
s = '(%s) -- %s' % (ircutils.bold(s), help)
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def getSyntax(method, name=None):
|
def getSyntax(method, name=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user