summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 51c9899..bbb70a5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3,6 +3,7 @@
#include <QApplication>
#include <QCommandLineOption>
#include <QCommandLineParser>
+#include <iostream>
int main(int argc, char **argv)
{
@@ -10,7 +11,7 @@ int main(int argc, char **argv)
QCommandLineParser parser;
parser.setApplicationDescription(QObject::tr("CoW-GUI for dnbd3-fuse sessions"));
parser.addHelpOption();
- QCommandLineOption sessionOption(QStringList() << QLatin1String("session") << QLatin1String("s"),
+ QCommandLineOption sessionOption(QStringList() << QLatin1String("sessionid") << QLatin1String("s"),
QObject::tr("Session ID to use when talking to server"),
QLatin1String("sessionid"));
QCommandLineOption urlOption(QStringList() << QLatin1String("url") << QLatin1String("u"),
@@ -25,6 +26,7 @@ int main(int argc, char **argv)
parser.process(app);
if (!parser.isSet(sessionOption) || !parser.isSet(urlOption) || !parser.isSet(pidOption)) {
+ std::cerr << "Missing command line option!" << parser.isSet(sessionOption) << parser.isSet(urlOption) << parser.isSet(pidOption) << std::endl;
parser.showHelp();
return 1;
}