Hi Thorsten,

On Tue, 6 Feb 2018, Thorsten Glaser wrote:

Tomas Pospisek dixit:

How is this programm supposed to be used? Can you give an example
in the man page?

This is fully documented in the manpage:

    -P           Read the password to write from standard input.  Currently

… and:

    Default mode of operation, that is, unless -P or -p are used, is to read
    the password from the Wallet and print it to standard output as-is, with‐
    out any trailing newline.

So, you can do something like:

printf '%s' "$password" | kwalletcli -e foo -f bar -P

password=$(kwalletcli -e foo -f bar)

Oh, I see. My problem in understanding how to use kwalletcli stems from the ambiguity of the word "folder". It can also mean a directory, as in directory in the filesystem. So what I was doing is:

   kwalletcli -e entry -f $PATH_TO_THE_WALLET

Which obviously won't show me an entry.

May I suggest this patch to the man page to disambiguate the meaning of folder or respectively to make it's context more clear, and to add a simple example:

$ diff -u kwalletcli.1 kwalletcli.1.patched
--- kwalletcli.1        2018-02-06 23:02:16.784511603 +0100
+++ kwalletcli.1.patched        2018-02-06 23:07:14.177657147 +0100
@@ -178,9 +178,9 @@
 to use when accessing the Wallet.
 Mandatory.
 .It Fl f Ar folder
-Set the
+The
 .Ar folder
-to use when accessing the Wallet.
+inside the Wallet in which to search for the entry.
 Mandatory.
 .It Fl h
 Display the usage.
@@ -249,6 +249,8 @@
 .It Ev DISPLAY
 The X11 display to use for communicating with the KDE Wallet.
 .El
+.Sh EXAMPLES
+echo MYPASSWORD | kwalletcli -e Stackoverflow -f Websites -P
 .Sh SEE ALSO
 .Xr kwalletcli_getpin 1
 .Sh AUTHORS


Thanks a lot!
*t

Reply via email to