Skip to content
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

Add option for not allowing password to be entered on command line #452

Open
ShiyunHUANG opened this issue Aug 24, 2018 · 0 comments
Open

Comments

@ShiyunHUANG
Copy link

For applications with high security requirement, passwords should not be exposed on the command line because they will be logged in command history. So we would want an option that always prompt the password even if it is provided in the argument. But after this fix https://github.com/cbeust/jcommander/issues/195 there is no way to prevent the user from entering the password on command line with password option.
So I suggest to provide a flag or parameter for securing password which will not take additional arguments entered on the command line and always prompt the user to enter password when used.
The followings are examples of the desired behaviors:
(1) positive case:
somecli -password
Enter password:
(2) negative case:
somecli -password
Error: invalid argument. Refer to usage .
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant