summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-10-11 19:10:07 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-10-11 19:10:07 +0100
commit8685355bfdc350add1433596742aa08af18440aa (patch)
treea81f39d2f4bb3fdf73599481b87fcc9e83352a71
parent59bfe939e38306c35d770dd60d71da98e5c99cca (diff)
downloadjt-8685355bfdc350add1433596742aa08af18440aa.tar.gz
Add command synopsises
-rwxr-xr-xjt13
1 files changed, 11 insertions, 2 deletions
diff --git a/jt b/jt
index 0852eb7..dca13e3 100755
--- a/jt
+++ b/jt
@@ -35,7 +35,16 @@ template = '''\
'''
-class JournalNote(cliapp.Application):
+class JournalTool(cliapp.Application):
+
+ cmd_synopsis = {
+ 'attach': 'DRAFT-ID [FILE]...',
+ 'edit': '[DRAFT-ID]',
+ 'finish': '[DRAFT-ID]',
+ 'list': '',
+ 'new': 'TITLE',
+ 'remove': 'DRAFT-ID',
+ }
def add_settings(self):
self.settings.string(
@@ -193,4 +202,4 @@ class JournalNote(cliapp.Application):
-JournalNote().run()
+JournalTool().run()