Add CLI specification

This commit is contained in:
Matthias Beyer 2016-01-05 21:17:26 +01:00
parent fc7f2c0bb1
commit 58d303be02

View file

@ -314,6 +314,45 @@ subcommands:
required: false required: false
takes_value: true takes_value: true
- show:
about: Show note(s)
version: 0.1
author: Matthias Beyer <mail@beyermatthias.de>
args:
- plain:
long: plain
short: p
help: Show notes plain (like with 'cat')
required: false
takes_value: false
- id:
long: id
help: Open note with this ID
required: false
takes_value: true
- namegrep:
short: n
long: name
help: Open where name matches this regex
required: false
takes_value: true
- grep:
short: g
long: grep
help: Open where grep with regex finds something
required: false
takes_value: true
- tags:
short: t
long: tags
help: Open all notes with these tags
required: false
takes_value: true
- open: - open:
about: Open notes as HTML page in browser (via XDG-open) about: Open notes as HTML page in browser (via XDG-open)
version: 0.1 version: 0.1