One nice thing about the multiple -m options on the command line is you could do something like this:

-m "user: "$(pass generate -n deleteme 10 2>/dev/null| tail -1)

Some websites want you to have an exposed username in addition to an email address and I started using a throwaway password for that.


On 1/10/19 7:21 AM, Tristan Miller wrote:
Dear Calin,

On Thu, 10 Jan 2019 15:33:30 +0100, Calin Iorgulescu
<[email protected]> wrote:
This patch adds the '-m' flag to 'generate', allowing the user to
specify one or more multiline entries after the generated password.
This is particularly useful when generating passwords used for
website accounts where other pieces of info are added to the password
entry. For example, if using an extension like browserpass[1], one
might wish to add the account name as well. But conceivably
additional info such as security question answers could be added. It
is possible to specify multiple '-m' entries.
Thanks for this -- this is a wishlist item that I raised here on
December 28.  Your patch is one solution to the problem, but I have to
question why you haven't made your "-m" option for "pass generate" work
the same way it does for "pass insert" (i.e., by reading the extra lines
from stdin rather than from command-line arguments). I think having two
different behaviours for the same command will lead to a lot of
confusion.  (Also, why not provide an additional long option version
named "--multiline", as "pass insert" does?)

Regards,
Tristan


_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store

_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to