mirror of https://gitee.com/bigwinds/arangodb
fixed arangodump
This commit is contained in:
parent
709ae8ae09
commit
7ab35e3c35
|
@ -131,15 +131,19 @@ void ClientFeature::validateOptions(std::shared_ptr<ProgramOptions> options) {
|
||||||
!options->processingResult().touched(_section + ".password")) {
|
!options->processingResult().touched(_section + ".password")) {
|
||||||
usleep(10 * 1000);
|
usleep(10 * 1000);
|
||||||
|
|
||||||
ConsoleFeature* console =
|
try {
|
||||||
ApplicationServer::getFeature<ConsoleFeature>("Console");
|
ConsoleFeature* console =
|
||||||
|
ApplicationServer::getFeature<ConsoleFeature>("Console");
|
||||||
|
|
||||||
if (console->isEnabled()) {
|
if (console->isEnabled()) {
|
||||||
_password = console->readPassword("Please specify a password: ");
|
_password = console->readPassword("Please specify a password: ");
|
||||||
} else {
|
return;
|
||||||
std::cout << "Please specify a password: " << std::flush;
|
}
|
||||||
std::getline(std::cin, _password);
|
} catch (...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cout << "Please specify a password: " << std::flush;
|
||||||
|
std::getline(std::cin, _password);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue