docs: update

This commit is contained in:
Dylan Araps 2019-02-25 21:49:31 +02:00
parent 484188e3d9
commit a9fd0b8dfb
3 changed files with 13 additions and 12 deletions

View File

@ -42,11 +42,11 @@ COMMANDS
OPTIONS
n Limit passwords to alphanumeric characters.
l Length of generated passwords.
c Copy password to clipboard.
q Don't print password to stdout.
-t Print list output as a tree.
c Copy password to clipboard.
l Length of generated passwords.
n Limit passwords to alphanumeric characters.
q Don't print password to stdout.
h Show usage and exit.
v Show version and exit.
```

8
pash
View File

@ -108,9 +108,9 @@ usage() { printf '%s' "\
pash - simple password manager.
usage: pash [add|del|show|list] [name] [-n,-q,-c] [-l length]
-n Limit passwords to alphanumeric characters.
-l length Length of generated passwords.
-c Copy password to clipboard.
-l length Length of generated passwords.
-n Limit passwords to alphanumeric characters.
-q Don't print password to stdout.
-t Print list output as a tree.
-h Print this message.
@ -126,9 +126,9 @@ get_args() {
shift 1
while getopts ":ncvqtl:" opt; do case $opt in
n) plain=1 ;;
l) length=${OPTARG//[^0-9]} ;;
c) clipboard=1 ;;
l) length=${OPTARG//[^0-9]} ;;
n) plain=1 ;;
q) quiet=1 ;;
t) tree=1 ;;
v) printf '%s\n' "pash 0.01"; exit ;;

9
pash.1
View File

@ -39,16 +39,17 @@ List all entries from the password store.
.SH OPTIONS
.TP
.BR \-n
Limit passwords to alphanumeric characters.
.BR \-c
Copy password to clipboard.
.TP
.BR \-l
Length of generated passwords.
.TP
.BR \-c
Copy password to clipboard.
.BR \-n
Limit passwords to alphanumeric characters.
.TP
.BR \-q