summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
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)