more command-line arguments

This commit is contained in:
Seth Alves 2016-09-16 14:11:44 -07:00
parent d3dc0698a5
commit 793687bb08
2 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
// //
// ICEClient.h // ICEClientApp.cpp
// tools/ice-client/src // tools/ice-client/src
// //
// Created by Seth Alves on 3/5/15. // Created by Seth Alves on 3/5/15.
@ -33,7 +33,7 @@ ICEClientApp::ICEClientApp(int argc, char* argv[]) : QCoreApplication(argc, argv
const QCommandLineOption howManyTimesOption("n", "how many times to cycle", "0"); const QCommandLineOption howManyTimesOption("n", "how many times to cycle", "0");
parser.addOption(howManyTimesOption); parser.addOption(howManyTimesOption);
const QCommandLineOption domainIDOption("d", "domain-server uuid"); const QCommandLineOption domainIDOption("d", "domain-server uuid", "00000000-0000-0000-0000-000000000000");
parser.addOption(domainIDOption); parser.addOption(domainIDOption);
@ -55,7 +55,8 @@ ICEClientApp::ICEClientApp(int argc, char* argv[]) : QCoreApplication(argc, argv
} }
if (parser.isSet(domainIDOption)) { if (parser.isSet(domainIDOption)) {
_domainID = QUuid(parser.value(howManyTimesOption)); _domainID = QUuid(parser.value(domainIDOption));
qDebug() << "domain-server ID is" << _domainID;
} }

View file

@ -1,5 +1,5 @@
// //
// ICEClient.h // ICEClientApp.h
// tools/ice-client/src // tools/ice-client/src
// //
// Created by Seth Alves on 2016-9-16 // Created by Seth Alves on 2016-9-16