summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-01-13 14:01:58 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-01-13 14:07:38 +0000
commitcd2de102b93a46c3249d88e46d811dd1fa625b66 (patch)
treebda9326a3a6f1728f8656e5709c19a939b6156a7 /alot/commands/search.py
parent701fce3327b4bdef44d27009058876ea4e956007 (diff)
fix: misuse of 'usage' command register parameter.
this corrects an unintentionally used 'usage' parameter to the intended 'help' parameter while decorating seach modes refine and sort commands
Diffstat (limited to 'alot/commands/search.py')
-rw-r--r--alot/commands/search.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/search.py b/alot/commands/search.py
index a7a8c97f..fbdacc05 100644
--- a/alot/commands/search.py
+++ b/alot/commands/search.py
@@ -34,11 +34,11 @@ class OpenThreadCommand(Command):
sb.unfold_matching(query)
-@registerCommand(MODE, 'refine', usage='refine query', arguments=[
+@registerCommand(MODE, 'refine', help='refine query', arguments=[
(['--sort'], {'help':'sort order', 'choices':[
'oldest_first', 'newest_first', 'message_id', 'unsorted']}),
(['query'], {'nargs':argparse.REMAINDER, 'help':'search string'})])
-@registerCommand(MODE, 'sort', usage='set sort order', arguments=[
+@registerCommand(MODE, 'sort', help='set sort order', arguments=[
(['sort'], {'help':'sort order', 'choices':[
'oldest_first', 'newest_first', 'message_id', 'unsorted']}),
])