mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Unify how are help conveys getopts that accept a value.
This commit is contained in:
parent
52100c23f4
commit
0fe82001d5
@ -111,7 +111,7 @@ class Debian(callbacks.Privmsg,
|
|||||||
callbacks.Privmsg.die(self)
|
callbacks.Privmsg.die(self)
|
||||||
|
|
||||||
def file(self, irc, msg, args, optlist, glob):
|
def file(self, irc, msg, args, optlist, glob):
|
||||||
"""[--{regexp,exact}=<value>] [<glob>]
|
"""[--{regexp,exact} <value>] [<glob>]
|
||||||
|
|
||||||
Returns packages in Debian that includes files matching <glob>. If
|
Returns packages in Debian that includes files matching <glob>. If
|
||||||
--regexp is given, returns packages that include files matching the
|
--regexp is given, returns packages that include files matching the
|
||||||
@ -242,7 +242,7 @@ class Debian(callbacks.Privmsg,
|
|||||||
|
|
||||||
_incomingRe = re.compile(r'<a href="(.*?\.deb)">', re.I)
|
_incomingRe = re.compile(r'<a href="(.*?\.deb)">', re.I)
|
||||||
def incoming(self, irc, msg, args, optlist, globs):
|
def incoming(self, irc, msg, args, optlist, globs):
|
||||||
"""[--{regexp,arch}=<value>] [<glob> ...]
|
"""[--{regexp,arch} <value>] [<glob> ...]
|
||||||
|
|
||||||
Checks debian incoming for a matching package name. The arch
|
Checks debian incoming for a matching package name. The arch
|
||||||
parameter defaults to i386; --regexp returns only those package names
|
parameter defaults to i386; --regexp returns only those package names
|
||||||
|
@ -397,7 +397,7 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg):
|
|||||||
|
|
||||||
_sqlTrans = string.maketrans('*?', '%_')
|
_sqlTrans = string.maketrans('*?', '%_')
|
||||||
def search(self, irc, msg, args):
|
def search(self, irc, msg, args):
|
||||||
"""[<channel>] [--values] [--{regexp}=<value>] [<glob>]
|
"""[<channel>] [--values] [--{regexp} <value>] [<glob>]
|
||||||
|
|
||||||
Searches the keyspace for keys matching <glob>. If --regexp is given,
|
Searches the keyspace for keys matching <glob>. If --regexp is given,
|
||||||
it associated value is taken as a regexp and matched against the keys.
|
it associated value is taken as a regexp and matched against the keys.
|
||||||
|
@ -290,7 +290,7 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
lucky = wrap(lucky, [many('something')])
|
lucky = wrap(lucky, [many('something')])
|
||||||
|
|
||||||
def google(self, irc, msg, args, optlist, text):
|
def google(self, irc, msg, args, optlist, text):
|
||||||
"""<search> [--{language,restrict}=<value>] [--{notsafe,similar}]
|
"""<search> [--{language,restrict} <value>] [--{notsafe,similar}]
|
||||||
|
|
||||||
Searches google.com for the given string. As many results as can fit
|
Searches google.com for the given string. As many results as can fit
|
||||||
are included. --language accepts a language abbreviation; --restrict
|
are included. --language accepts a language abbreviation; --restrict
|
||||||
|
@ -332,7 +332,7 @@ class Lookup(callbacks.Privmsg):
|
|||||||
setattr(self.__class__, name, f)
|
setattr(self.__class__, name, f)
|
||||||
|
|
||||||
def search(self, irc, msg, args):
|
def search(self, irc, msg, args):
|
||||||
"""[--{regexp}=<value>] [--values] <name> <glob>
|
"""[--{regexp} <value>] [--values] <name> <glob>
|
||||||
|
|
||||||
Searches the domain <name> for lookups matching <glob>. If --regexp
|
Searches the domain <name> for lookups matching <glob>. If --regexp
|
||||||
is given, its associated value is taken as a regexp and matched
|
is given, its associated value is taken as a regexp and matched
|
||||||
|
@ -261,7 +261,7 @@ class Quotes(callbacks.Privmsg):
|
|||||||
irc.reply(utils.commaAndify(quotes))
|
irc.reply(utils.commaAndify(quotes))
|
||||||
|
|
||||||
def search(self, irc, msg, args):
|
def search(self, irc, msg, args):
|
||||||
"""[<channel>] --{id,regexp,from,with}=<value> ]
|
"""[<channel>] --{id,regexp,from,with} <value> ]
|
||||||
|
|
||||||
Returns quote(s) matching the given criteria. --from is who added the
|
Returns quote(s) matching the given criteria. --from is who added the
|
||||||
quote; --id is the id number of the quote; --regexp is a regular
|
quote; --id is the id number of the quote; --regexp is a regular
|
||||||
|
@ -196,7 +196,7 @@ class Todo(callbacks.Privmsg):
|
|||||||
|
|
||||||
_sqlTrans = string.maketrans('*?', '%_')
|
_sqlTrans = string.maketrans('*?', '%_')
|
||||||
def search(self, irc, msg, args, user, optlist, globs):
|
def search(self, irc, msg, args, user, optlist, globs):
|
||||||
"""[--{regexp}=<value>] [<glob> <glob> ...]
|
"""[--{regexp} <value>] [<glob> <glob> ...]
|
||||||
|
|
||||||
Searches your todos for tasks matching <glob>. If --regexp is given,
|
Searches your todos for tasks matching <glob>. If --regexp is given,
|
||||||
its associated value is taken as a regexp and matched against the
|
its associated value is taken as a regexp and matched against the
|
||||||
|
@ -449,7 +449,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
ircutils.isChannel(msg.args[0])
|
ircutils.isChannel(msg.args[0])
|
||||||
|
|
||||||
def last(self, irc, msg, args, optlist):
|
def last(self, irc, msg, args, optlist):
|
||||||
"""[--{from,in,on,with,without,regexp,nolimit} <value>]
|
"""[--{from,in,on,with,without,regexp} <value>] [--nolimit]
|
||||||
|
|
||||||
Returns the last message matching the given criteria. --from requires
|
Returns the last message matching the given criteria. --from requires
|
||||||
a nick from whom the message came; --in requires a channel the message
|
a nick from whom the message came; --in requires a channel the message
|
||||||
|
Loading…
Reference in New Issue
Block a user