diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-15 12:04:54 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-10-15 12:04:54 +0100 |
commit | 3ed5294d6683cc6d7ad61755d915f4f797ab7da9 (patch) | |
tree | a0cdf6040fd7267a3c000e8003c93a83e83fbafe /alot | |
parent | c7bb6b65f1dc2e473c105ee8d2502661248a34dc (diff) |
decorate thread:save
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/thread.py | 5 |
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) |