text for inserting password
This commit is contained in:
committed by
Louis-Bertrand Varin
parent
98911af396
commit
e01e9715b9
@@ -60,6 +60,7 @@ void printGroup(Group* group, QString baseName, int depth) {
|
||||
int List::execute(int argc, char **argv)
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
QTextStream out(stdout);
|
||||
|
||||
QCommandLineParser parser;
|
||||
parser.setApplicationDescription(QCoreApplication::translate("main",
|
||||
@@ -73,6 +74,9 @@ int List::execute(int argc, char **argv)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
out << "Insert the database password\n> ";
|
||||
out.flush();
|
||||
|
||||
static QTextStream inputTextStream(stdin, QIODevice::ReadOnly);
|
||||
QString line = inputTextStream.readLine();
|
||||
CompositeKey key = CompositeKey::readFromLine(line);
|
||||
|
||||
Reference in New Issue
Block a user