From 0e867441ef1db1632184d8246165386f9e8adb83 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 23 Dec 2015 00:03:22 +0530 Subject: [PATCH] More clarity on `-t` option. Signed-off-by: Arun Prakash Jana --- README.md | 4 ++-- buku | 2 +- buku.1 | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5da3e07..dc30a60 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ OR, on Ubuntu, - `-s` : match any of the keywords in URL or title. Order is irrelevant. - `-S` : match all the keywords in URL or title. Order is irrelevant. - Search results are indexed serially. This index is different from actual database index of a bookmark reord which is shown within `()` after the URL. -- Encryption support is manual. Database file should be unlocked (`-k`) before using buku and locked (`-l`) afterwards. Note that the database file is unecrypted on creation. AES256 is used for encryption. User can specify (`-t`) the number of hash iterations to use to generate key. +- Encryption support is manual. Database file should be unlocked (`-k`) before using buku and locked (`-l`) afterwards. Note that the database file is unecrypted on creation. AES256 is used for encryption. Optionally specify (`-t`) the number of hash iterations to use to generate key. Default is 8 iterations. Cmdline help: @@ -97,7 +97,7 @@ Options -R refresh all bookmarks, tags retained -s keyword(s) search all bookmarks for a (partial) tag or any keyword -S keyword(s) search all bookmarks for a (partial) tag or all keywords - -t N use N (> 0) iterations to generate key, works with -k, -l + -t N use N (> 0) hash iterations to generate key, works with -k, -l -u N update entry at DB index N -w fetch title info from web, works with -a, -i, -u -x N works with -P, N=1: show only URL, N=2: show URL and tag diff --git a/buku b/buku index 8c1c95f..2be777c 100755 --- a/buku +++ b/buku @@ -84,7 +84,7 @@ def usage(): print(" -R refresh all bookmarks, tags retained") print(" -s keyword(s) search all bookmarks for a (partial) tag or any keyword") print(" -S keyword(s) search all bookmarks for a (partial) tag or all keywords") - print(" -t N use N (> 0) iterations to generate key, works with -k, -l") + print(" -t N use N (> 0) hash iterations to generate key, works with -k, -l") print(" -u N update entry at DB index N") print(" -w fetch title info from web, works with -a, -i, -u") print(" -x N works with -P, N=1: show only URL, N=2: show URL and tag") diff --git a/buku.1 b/buku.1 index 165bafc..55202ab 100644 --- a/buku.1 +++ b/buku.1 @@ -26,7 +26,7 @@ Search works in mysterious ways: - '-S' : match all the keywords in URL or title. Order is irrelevant. - Search results are indexed serially. This index is different from actual database index of a bookmark reord which is shown within '()' after the URL. .PP -Encryption support is manual. Database file should be unlocked ('-k') before using buku and locked ('-l') afterwards. Note that the database file is unecrypted on creation. AES256 is used for encryption. +Encryption support is manual. Database file should be unlocked ('-k') before using buku and locked ('-l') afterwards. Note that the database file is unecrypted on creation. AES256 is used for encryption. Optionally specify ('-t') the number of hash iterations to use to generate key. Default is 8 iterations. .SH OPTIONS .TP .BI \-a " URL" " " "tag 1", " tag 2", " ..." @@ -75,6 +75,11 @@ Search bookmarks for a (partial) tag or any keyword and show the results. Prompt .BI \-S " keywords" Search bookmarks for a (partial) tag or occurrence of all keywords in URL or title and show the results. Rest same as '-s'. .TP +.BI \-t " N" +Use +.I N +(> 0) hash iterations to generate key, works with '-k', '-l'. +.TP .BI \-u " N" Update bookmark at index .I N