diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-10-11 19:10:07 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-10-11 19:10:07 +0100 |
commit | 8685355bfdc350add1433596742aa08af18440aa (patch) | |
tree | a81f39d2f4bb3fdf73599481b87fcc9e83352a71 | |
parent | 59bfe939e38306c35d770dd60d71da98e5c99cca (diff) | |
download | jt-8685355bfdc350add1433596742aa08af18440aa.tar.gz |
Add command synopsises
-rwxr-xr-x | jt | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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() |