From 9c7da9f4e5decf92b36480a52647f5d409806dbc Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sat, 15 Oct 2011 12:47:09 +0100 Subject: decorate search:retag --- alot/commands/globals.py | 4 +++- alot/commands/search.py | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'alot') diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 5069802f..d9cd10db 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -88,7 +88,9 @@ class RefreshCommand(Command): ui.update() -@registerCommand(MODE, 'shellescape') +@registerCommand(MODE, 'shellescape', arguments=[ + (['cmdline'], {'help':'command line to execute'})] +) class ExternalCommand(Command): """calls external command""" def __init__(self, commandstring, path=None, spawn=False, refocus=True, diff --git a/alot/commands/search.py b/alot/commands/search.py index c275014f..a28db05e 100644 --- a/alot/commands/search.py +++ b/alot/commands/search.py @@ -121,11 +121,13 @@ class RetagPromptCommand(Command): ui.commandprompt('retag ' + initial_tagstring) -@registerCommand(MODE, 'retag', {}) +@registerCommand(MODE, 'retag', arguments=[ + (['tags'], {'help':'comma separated list of tags'})] +) class RetagCommand(Command): """tag selected thread""" - def __init__(self, tagsstring=u'', thread=None, **kwargs): - self.tagsstring = tagsstring + def __init__(self, tags=u'', thread=None, **kwargs): + self.tagsstring = tags self.thread = thread Command.__init__(self, **kwargs) -- cgit v1.2.3