diff --git a/README.md b/README.md index 5e6f789..098ea4c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ pass update 2.0 - A pass extension extension that provides an easy flow for updating passwords. Usage: - pass update [-h] [-n] [-l ] [-c | -p] [-p | -m] [-f] pass-names... + pass update [-h] [-n] [-l ] [-c | -p] [-p | -m] [-e] [-f] pass-names Provide an interactive solution to update a set of passwords. pass-names can refer either to password store path(s) or to directory. @@ -32,6 +32,7 @@ Usage: -l, --length Provide a password length. -p, --provide Let the user specify a password by hand. -m, --multiline Update a multiline password. + -e, --edit Edit the password using the default editor. -f, --force Force update. -V, --version Show version information. -h, --help Print this help message and exit. diff --git a/pass-update.1 b/pass-update.1 index 60c685c..0a15efd 100644 --- a/pass-update.1 +++ b/pass-update.1 @@ -20,7 +20,8 @@ generating a new one. This behavior can be changed using the provided options. .SH COMMAND .TP \fBpass update\fP [ \fI--clip\fP, \fI-c\fP ] [ \fI--no-symbols\fP, \fI-n\fP ] [ \fI--provide\fP, \fI-p\fP ] - [\fI--length=\fP, \fI-l \fP] [ \fI--multiline\fP, \fI-m\fP ] \fIpass-names...\fP + [\fI--length=\fP, \fI-l \fP] [ \fI--multiline\fP, \fI-m\fP ] [ \fI--edit\fP, \fI-e\fP ] + \fIpass-names...\fP Update the password provided: print the password and wait for the user to generate a new one. @@ -46,6 +47,9 @@ If \fI--multiline\fP or \fI-m\fP is specified, update a multiline password. Beware this option will ovewrite the full password file instead of updating the password field. +If \fI--edit\fP or \fI-e\fP is specified, edit the password using the default +editor. This editor can be specified with \fIEDITOR\fP. + If \fI--force\fP or \fI-f\fP is specified, pass update does not wait for the user and generate a new password immediately. @@ -71,6 +75,10 @@ Let the user specify a password by hand. \fB\-m\fB, \-\-multiline\fR Update a multiline password. +.TP +\fB\-e\fB, \-\-edit\fR +Edit the password using the default editor. + .TP \fB\-f\fB, \-\-force\fR Force to update and do not wait for user instruction. diff --git a/update.bash b/update.bash index 782b979..5d10d59 100755 --- a/update.bash +++ b/update.bash @@ -34,7 +34,7 @@ cmd_update_usage() { echo cat <<-_EOF Usage: - $PROGRAM update [-h] [-n] [-l ] [-c | -p] [-p | -m] [-f] pass-names... + $PROGRAM update [-h] [-n] [-l ] [-c | -p] [-p | -m] [-e] [-f] pass-names Provide an interactive solution to update a set of passwords. pass-names can refer either to password store path(s) or to directory.