From 0fe82001d5550dba359e95316f29ab77a82f5d45 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sat, 8 Jan 2005 06:51:55 +0000 Subject: [PATCH] Unify how are help conveys getopts that accept a value. --- plugins/Debian.py | 4 ++-- plugins/Factoids.py | 2 +- plugins/Google.py | 2 +- plugins/Lookup.py | 2 +- plugins/Quotes.py | 2 +- plugins/Todo.py | 2 +- src/Misc.py | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/Debian.py b/plugins/Debian.py index fba1b75b7..ad0308852 100644 --- a/plugins/Debian.py +++ b/plugins/Debian.py @@ -111,7 +111,7 @@ class Debian(callbacks.Privmsg, callbacks.Privmsg.die(self) def file(self, irc, msg, args, optlist, glob): - """[--{regexp,exact}=] [] + """[--{regexp,exact} ] [] Returns packages in Debian that includes files matching . If --regexp is given, returns packages that include files matching the @@ -242,7 +242,7 @@ class Debian(callbacks.Privmsg, _incomingRe = re.compile(r'', re.I) def incoming(self, irc, msg, args, optlist, globs): - """[--{regexp,arch}=] [ ...] + """[--{regexp,arch} ] [ ...] Checks debian incoming for a matching package name. The arch parameter defaults to i386; --regexp returns only those package names diff --git a/plugins/Factoids.py b/plugins/Factoids.py index 85bcf4240..960da3663 100644 --- a/plugins/Factoids.py +++ b/plugins/Factoids.py @@ -397,7 +397,7 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg): _sqlTrans = string.maketrans('*?', '%_') def search(self, irc, msg, args): - """[] [--values] [--{regexp}=] [] + """[] [--values] [--{regexp} ] [] Searches the keyspace for keys matching . If --regexp is given, it associated value is taken as a regexp and matched against the keys. diff --git a/plugins/Google.py b/plugins/Google.py index 7e6574dce..dd34f723c 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -290,7 +290,7 @@ class Google(callbacks.PrivmsgCommandAndRegexp): lucky = wrap(lucky, [many('something')]) def google(self, irc, msg, args, optlist, text): - """ [--{language,restrict}=] [--{notsafe,similar}] + """ [--{language,restrict} ] [--{notsafe,similar}] Searches google.com for the given string. As many results as can fit are included. --language accepts a language abbreviation; --restrict diff --git a/plugins/Lookup.py b/plugins/Lookup.py index a6e6358c5..950554dcb 100644 --- a/plugins/Lookup.py +++ b/plugins/Lookup.py @@ -332,7 +332,7 @@ class Lookup(callbacks.Privmsg): setattr(self.__class__, name, f) def search(self, irc, msg, args): - """[--{regexp}=] [--values] + """[--{regexp} ] [--values] Searches the domain for lookups matching . If --regexp is given, its associated value is taken as a regexp and matched diff --git a/plugins/Quotes.py b/plugins/Quotes.py index d748e881a..c9d62b511 100644 --- a/plugins/Quotes.py +++ b/plugins/Quotes.py @@ -261,7 +261,7 @@ class Quotes(callbacks.Privmsg): irc.reply(utils.commaAndify(quotes)) def search(self, irc, msg, args): - """[] --{id,regexp,from,with}= ] + """[] --{id,regexp,from,with} ] 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 diff --git a/plugins/Todo.py b/plugins/Todo.py index 9888dd7cd..215115cc1 100644 --- a/plugins/Todo.py +++ b/plugins/Todo.py @@ -196,7 +196,7 @@ class Todo(callbacks.Privmsg): _sqlTrans = string.maketrans('*?', '%_') def search(self, irc, msg, args, user, optlist, globs): - """[--{regexp}=] [ ...] + """[--{regexp} ] [ ...] Searches your todos for tasks matching . If --regexp is given, its associated value is taken as a regexp and matched against the diff --git a/src/Misc.py b/src/Misc.py index a00f8a35b..c04c14687 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -449,7 +449,7 @@ class Misc(callbacks.Privmsg): ircutils.isChannel(msg.args[0]) def last(self, irc, msg, args, optlist): - """[--{from,in,on,with,without,regexp,nolimit} ] + """[--{from,in,on,with,without,regexp} ] [--nolimit] Returns the last message matching the given criteria. --from requires a nick from whom the message came; --in requires a channel the message