-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI] create
does not honor --no-password
#4307
Comments
I think the |
The The phrasing I don't really have any opinion regarding a future |
|
Adding
in the if clause? Edit: If commit |
@Crote thanks for pointing out the |
@louib why not to used meta options like -k -no-password found in general options, instead of having flustrating differences and long manpage? |
@JulianVolodia we would still have to document in the manpage what the options are used for in different contexts (creation and opening), so we'll have to add stuff to the manpage anyway. I'd rather have argument with names that are explicit about what they do, than re-use arguments from other commands to implement a completely different functionality. |
Documented manpage is excuse. But, you are in Team - you decide. In free time check out some cli tools out there and how you like using one which have parameters context dependant. As we all type I accept your decision - it is your issue, but I want that you see other point and still say that yours is better. |
Expected Behavior
When I run
keepassxc-cli create --no-password --key-file somekey newdb.kdbx
, the CLI should create a database without a password. This behaviour would be similar to that of all other cli commands and is heavily implied by the manpageCurrent Behavior
The command returns
Unknown option 'no-password'
Possible Solution
A current workaround is to use
echo '' | keepassxc-cli create --key-file somekey newdb.kdbx
instead, but this is very cumbersome.It seems to be fixable by wrapping the https://github.com/keepassxreboot/keepassxc/blob/develop/src/cli/Create.cpp#L100 part in a
if (!parser->isSet(Command::NoPasswordOption))
block and adding that flag to the options parser.Context
Current behaviour is inconsistent with other commands and contradicts the manpage.
The text was updated successfully, but these errors were encountered: