Skip to content

Commit 3624934

Browse files
author
Anand
committed
ref issue #10 - Added readme entry for searching with multiple terms
1 parent c3bbb25 commit 3624934

File tree

1 file changed

+44
-24
lines changed

1 file changed

+44
-24
lines changed

README.md

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -69,38 +69,39 @@ The binary will be installed in `/usr/local/bin` folder.
6969
Usage
7070
=====
7171

72-
$ ./varuh -h
72+
$ varuh -h
7373
usage: varuh [-h|--help] [-I|--init "<value>"] [-d|--decrypt "<value>"]
7474
[-C|--clone "<value>"] [-R|--remove "<value>"] [-U|--use-db
75-
"<value>"] [-f|--find "<value>"] [-E|--edit "<value>"]
76-
[-l|--list-entry "<value>"] [-x|--export "<value>"] [-e|--encrypt]
77-
[-A|--add] [-p|--path] [-a|--list-all] [-g|--genpass] [-s|--show]
78-
[-c|--copy] [-y|--assume-yes] [-v|--version]
75+
"<value>"] [-E|--edit "<value>"] [-l|--list-entry "<value>"]
76+
[-x|--export "<value>"] [-f|--find "<value>" [-f|--find "<value>"
77+
...]] [-e|--encrypt] [-A|--add] [-p|--path] [-a|--list-all]
78+
[-g|--genpass] [-s|--show] [-c|--copy] [-y|--assume-yes]
79+
[-v|--version]
7980

8081
Password manager for the command line for Unix like operating
8182
systems
8283

8384
Options:
8485

85-
-h --help Print help information
86-
-I --init <path> Initialize a new database
87-
-d --decrypt <path> Decrypt password database
88-
-C --clone <id> Clone an entry with <id>
89-
-R --remove <id> Remove an entry with <id> or <id-range>
90-
-U --use-db <path> Set <path> as active database
91-
-f --find <term> Search entries with <term>
92-
-E --edit <id> Edit entry by <id>
93-
-l --list-entry <id> List entry by <id>
94-
-x --export <filename> Export all entries to <filename>
95-
-e --encrypt Encrypt the current database
96-
-A --add Add a new entry
97-
-p --path Show current database path
98-
-a --list-all List all entries in current database
99-
-g --genpass Generate a strong password (length: 12 - 16)
100-
-s --show Show passwords when listing entries
101-
-c --copy Copy password to clipboard
102-
-y --assume-yes Assume yes to actions requiring confirmation
103-
-v --version Show version information and exit
86+
-h --help Print help information
87+
-I --init <path> Initialize a new database
88+
-d --decrypt <path> Decrypt password database
89+
-C --clone <id> Clone an entry with <id>
90+
-R --remove <id> Remove an entry with <id> or <id-range>
91+
-U --use-db <path> Set <path> as active database
92+
-E --edit <id> Edit entry by <id>
93+
-l --list-entry <id> List entry by <id>
94+
-x --export <filename> Export all entries to <filename>
95+
-f --find <t1> <t2> ... Search entries with terms
96+
-e --encrypt Encrypt the current database
97+
-A --add Add a new entry
98+
-p --path Show current database path
99+
-a --list-all List all entries in current database
100+
-g --genpass Generate a strong password (length: 12 - 16)
101+
-s --show Show passwords when listing entries
102+
-c --copy Copy password to clipboard
103+
-y --assume-yes Assume yes to actions requiring confirmation
104+
-v --version Show version information and exit
104105

105106

106107
AUTHORS
@@ -441,6 +442,25 @@ An entry can be searched on its title, username, URL or notes. Search is case-in
441442
Modified: 2021-21-25 15:09:51
442443
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
443444

445+
446+
## To search using multiple terms
447+
448+
The `-f` option supports multiple terms, so you can specify this more than one time to narrow a search down to a specific entry.
449+
450+
$ varuh -f google -f anand
451+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
452+
ID: 8
453+
Title: Google account
454+
455+
URL:
456+
Password: **********
457+
Notes:
458+
Modified: 2021-21-25 15:02:50
459+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
460+
461+
$ varuh -f google -f priya
462+
Entry for "google priya" not found
463+
444464
## To list all entries
445465

446466
To list all entries, use the option `-a`.

0 commit comments

Comments
 (0)