summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
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/commands/globals.py
parent12ee0b9763542151a86fa8bbdef5ea91bc0bdfdb (diff)
fix help without parameters
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py8
1 files changed, 6 insertions, 2 deletions
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):