keepassxc
keepassxc copied to clipboard
CLI in open mode still shows standalone command help
Expected Behavior
CLI open mode would not show flags for database handling when a database is already opened.
Current Behavior
All commands show the shared database parameter flags in open mode:
Demo Passwords> help show
Usage: keepassxc-cli.exe show [options] database entry
Show an entry's information.
Options:
-q, --quiet Silence password prompt and other secondary
outputs.
-k, --key-file <path> Key file of the database.
--no-password Deactivate password key for the database.
-y, --yubikey <slot> Yubikey slot used to encrypt the database.
-t, --totp Show the entry's current TOTP.
-a, --attributes <attribute> Names of the attributes to show. This option
can be specified more than once, with each
attribute shown one-per-line in the given order.
If no attributes are specified, a summary of the
default attributes is given.
-s, --show-protected Show the protected attributes in clear text.
-?, -h, --help Display this help.
Arguments:
database Path of the database.
entry Name of the entry to show.
-k, --no-password, -y and the argument "database" are not relevant or desired when in open mode.
Possible Solution
Filter out the inclusion of certain shared parameters when in open mode.