From 04f7c24d658770a4f64096e0a6a82325bcb4b65a Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Tue, 25 Mar 2014 17:01:53 +0000 Subject: fix: always read remaining parms for `compose` into list --- alot/commands/globals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alot') diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 51107899..7073d524 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -644,14 +644,14 @@ class HelpCommand(Command): 'help': 'do not add signature'}), (['--spawn'], {'action': BooleanAction, 'default': None, 'help': 'spawn editor in new terminal'}), - (['rest'], {'nargs': '*', 'default': None, 'help': ''}), + (['rest'], {'nargs': '*'}), ]) class ComposeCommand(Command): """compose a new email""" def __init__(self, envelope=None, headers={}, template=None, sender=u'', subject=u'', to=[], cc=[], bcc=[], attach=None, - omit_signature=False, spawn=None, rest=None, **kwargs): + omit_signature=False, spawn=None, rest=[], **kwargs): """ :param envelope: use existing envelope :type envelope: :class:`~alot.db.envelope.Envelope` -- cgit v1.2.3