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")) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue