summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-15 12:04:54 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-15 12:04:54 +0100
commit3ed5294d6683cc6d7ad61755d915f4f797ab7da9 (patch)
treea0cdf6040fd7267a3c000e8003c93a83e83fbafe /alot
parentc7bb6b65f1dc2e473c105ee8d2502661248a34dc (diff)
decorate thread:save
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/thread.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index a51464d8..6c3b58b5 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -310,7 +310,10 @@ class PrintCommand(PipeCommand):
done_msg=ok_msg, **kwargs)
-@registerCommand(MODE, 'save', {})
+@registerCommand(MODE, 'save', arguments=[
+ (['--all'], {'action': 'store_true', 'help':'save all attachments'}),
+ (['path'], {'nargs':'?', 'help':'path to save to'})]
+)
class SaveAttachmentCommand(Command):
def __init__(self, all=False, path=None, **kwargs):
Command.__init__(self, **kwargs)