Add Json output info in help.

This commit is contained in:
Arun Prakash Jana 2016-04-17 21:37:26 +05:30
parent 7197aecbb5
commit aba796e99e
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB
2 changed files with 4 additions and 2 deletions

View File

@ -45,6 +45,7 @@ Find `buku` useful? If you would like to donate, visit the
- Unique URLs to avoid duplicates, show index if URL already exists
- Open bookmark in browser using index
- Open search results in browser
- Optional Json formatted output
- Modify or delete tags in DB
- Show all unique tags sorted alphabetically
- Browser (Chromium and Firefox based) errors and warnings suppression
@ -68,7 +69,6 @@ Find `buku` useful? If you would like to donate, visit the
- Fast and clean (no ads or clutter)
- Minimal dependencies
- Open source and free
- Json output with -j flag
# Installation
@ -136,6 +136,7 @@ You may need to use `sudo` with `PREFIX` depending on your permissions on destin
-D delete ALL bookmarks
-e show bookmarks with empty titles or no tags
-i N insert new bookmark at free DB index N
-j show result in Json format
-k decrypt (unlock) database file
-l encrypt (lock) database file
-o N open URL at DB index N in browser

3
buku
View File

@ -72,7 +72,7 @@ titleData = None # Title fetched from a page
titleManual = None # Manually add a title offline
refresh = False # Refresh the full DB
replace = False # Replace a tag
jsonOutput = False # Output results as json
jsonOutput = False # Output json formatted result
pipeargs = [] # Holds arguments piped to the program
_VERSION_ = 1.9 # Program version
@ -981,6 +981,7 @@ def usage():
print(" -D delete ALL bookmarks")
print(" -e show bookmarks with empty titles or no tags")
print(" -i N insert new bookmark at free DB index N")
print(" -j show result in Json format")
print(" -k decrypt (unlock) database file")
print(" -l encrypt (lock) database file")
print(" -o N open URL at DB index N in browser")