Show that it's asking for password if it's not present in the command line argument
This commit is contained in:
parent
512445c47c
commit
d6e780297e
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
main.cpp
|
|
@ -50,8 +50,10 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
//Load password from an argument (if present)
|
//Load password from an argument (if present)
|
||||||
std::string password = parameter_parser.get_value("pass", 'p');
|
std::string password = parameter_parser.get_value("pass", 'p');
|
||||||
|
//Wait for password input in case it wasn't present in the argument
|
||||||
if (password.compare("-") == 0)
|
if (password.compare("-") == 0)
|
||||||
{
|
{
|
||||||
|
std::cout << "Input Pasword: ";
|
||||||
std::cin >> password;
|
std::cin >> password;
|
||||||
}
|
}
|
||||||
password_manager.key = QString::fromStdString(password);
|
password_manager.key = QString::fromStdString(password);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue