From 99419824e12ccfa082967248df356e15f456e8cd Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Fri, 22 Mar 2019 12:33:29 +0100 Subject: Add support for quiet output of otp code command When using this option the output of `pass otp -q ...` is predictable and can be further used without parsing even when the password store is a repository as well. This is useful, for example, when using rofi-pass. The patch is written in a way that other commands can optionally use the quiet option for otp_insert as well. --- pass-otp.1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pass-otp.1') diff --git a/pass-otp.1 b/pass-otp.1 index bef89f7..9bded0c 100644 --- a/pass-otp.1 +++ b/pass-otp.1 @@ -28,13 +28,15 @@ If no COMMAND is specified, COMMAND defaults to \fBcode\fP. .SH COMMANDS .TP -\fBotp code\fP [ \fI--clip\fP, \fI-c\fP ] \fIpass-name\fP +\fBotp code\fP [ \fI--clip\fP, \fI-c\fP ] [ \fI--quiet\fP, \fI-q\fP ] \fIpass-name\fP Generate and print an OTP code from the secret key stored in \fIpass-name\fP using \fBoathtool\fP(1). If \fI--clip\fP or \fI-c\fP is specified, do not print the code but instead copy it to the clipboard using \fBxclip\fP(1) and then restore the clipboard after 45 (or \fIPASSWORD_STORE_CLIP_TIME\fP) -seconds. This command is alternatively named \fBshow\fP. +seconds. If \fI--quiet\fP or \fI-q\fP is specified, do not print +the git update message to standard out. This command is alternatively named +\fBshow\fP. .TP \fBotp insert\fP [ \fI--force\fP, \fI-f\fP ] [ \fI--echo\fP, \fI-e\fP ] \ -- cgit v1.2.3