From a2283bbf8f38c17182b82e4258156f40dd840d84 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sat, 15 Oct 2011 13:59:11 +0100 Subject: fix help without parameters --- alot/commands/globals.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'alot/commands/globals.py') diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 6484b3e2..ce664619 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -159,7 +159,11 @@ class ExternalCommand(Command): ui.mainloop.screen.start() -@registerCommand(MODE, 'edit') +#@registerCommand(MODE, 'edit', arguments=[ +# (['--nospawn'], {'action': 'store_true', 'help':'spawn '}), #todo +# (['path'], {'help':'file to edit'})] +#] +#) class EditCommand(ExternalCommand): def __init__(self, path, spawn=None, **kwargs): self.path = path @@ -279,7 +283,7 @@ class FlushCommand(Command): @registerCommand(MODE, 'help', arguments=[ - (['commandname'], {'help':'command'})] + (['commandname'], {'nargs': '?', 'help':'command'})] ) class HelpCommand(Command): def __init__(self, commandname='', **kwargs): -- cgit v1.2.3