1
0
Fork 0

fixed arangodump

This commit is contained in:
jsteemann 2016-04-30 15:54:40 +02:00
parent 709ae8ae09
commit 7ab35e3c35
1 changed files with 11 additions and 7 deletions

View File

@ -131,15 +131,19 @@ void ClientFeature::validateOptions(std::shared_ptr<ProgramOptions> options) {
!options->processingResult().touched(_section + ".password")) {
usleep(10 * 1000);
ConsoleFeature* console =
ApplicationServer::getFeature<ConsoleFeature>("Console");
try {
ConsoleFeature* console =
ApplicationServer::getFeature<ConsoleFeature>("Console");
if (console->isEnabled()) {
_password = console->readPassword("Please specify a password: ");
} else {
std::cout << "Please specify a password: " << std::flush;
std::getline(std::cin, _password);
if (console->isEnabled()) {
_password = console->readPassword("Please specify a password: ");
return;
}
} catch (...) {
}
std::cout << "Please specify a password: " << std::flush;
std::getline(std::cin, _password);
}
}