summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2011-10-15 13:59:11 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2011-10-15 13:59:11 +0100
commita2283bbf8f38c17182b82e4258156f40dd840d84 (patch)
treeb83f1b84c833032d83b0f8c6cbb168a1f3ae6a94 /alot
parent12ee0b9763542151a86fa8bbdef5ea91bc0bdfdb (diff)
fix help without parameters
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/__init__.py7
-rw-r--r--alot/commands/globals.py8
2 files changed, 6 insertions, 9 deletions
diff --git a/alot/commands/__init__.py b/alot/commands/__init__.py
index c9a38b0d..2eea78ec 100644
--- a/alot/commands/__init__.py
+++ b/alot/commands/__init__.py
@@ -119,13 +119,6 @@ def commandfactory(cmdline, mode='global'):
#def interpret_commandline(cmdline, mode):
#
-# elif cmd == 'compose':
-# h = {}
-# if params:
-# h = {'To': params}
-# return commandfactory(cmd, mode=mode, headers=h)
-# elif cmd == 'retag':
-# return commandfactory(cmd, mode=mode, tagsstring=params)
# elif cmd == 'shellescape':
# return commandfactory(cmd, mode=mode, commandstring=params)
# elif cmd == 'edit':
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):