summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-15 12:47:09 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-15 12:47:09 +0100
commit9c7da9f4e5decf92b36480a52647f5d409806dbc (patch)
treeeaf86dad70a208457f897aa7192fd240cfd37dab /alot
parentc12df8fa48f56e3f55e2cdc4299126d06aa80d79 (diff)
decorate search:retag
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/globals.py4
-rw-r--r--alot/commands/search.py8
2 files changed, 8 insertions, 4 deletions
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)