CLI Improvements

* Fix #6001 - only use `--notes` in Add/Edit commands to prevent clash with password generator option `-n`.

* Fix #6119 - Send Unicode to clip command; Windows only understands UTF-16 encoding.

* Fix #6128 - `clip` command will default to clearing the clipboard after 10 seconds. To disable clearing set timeout to 0.
This commit is contained in:
Jonathan White
2021-04-18 16:11:57 -04:00
parent be3e77d721
commit 8a7be101e4
6 changed files with 52 additions and 47 deletions

View File

@@ -45,7 +45,7 @@ It provides the ability to query and modify the entries of a KeePass database, d
If no attribute name is specified using the *-a* option, the password is copied.
If multiple entries with the same name exist in different groups, only the attribute for the first one is copied.
For copying the attribute of an entry in a specific group, the group path to the entry should be specified as well, instead of just the name.
Optionally, a timeout in seconds can be specified to automatically clear the clipboard.
Optionally, a timeout in seconds can be specified to automatically clear the clipboard, the default timeout is 10 seconds, set to 0 to disable.
*close*::
In interactive mode, closes the currently opened database (see *open*).
@@ -182,7 +182,7 @@ The same password generation options as documented for the generate command can
*--url* <__url__>::
Specifies the URL of the entry.
*-n*, *--notes* <__notes__>::
*--notes* <__notes__>::
Specifies the notes of the entry.
*-p*, *--password-prompt*::