summaryrefslogtreecommitdiffstats
path: root/src/CommandLineOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommandLineOptions.cpp')
-rw-r--r--src/CommandLineOptions.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CommandLineOptions.cpp b/src/CommandLineOptions.cpp
index 06b00ae..3b1fbd1 100644
--- a/src/CommandLineOptions.cpp
+++ b/src/CommandLineOptions.cpp
@@ -2,12 +2,15 @@
* This class parses the command line options.
*/
-
+#include <QDebug>
#include <getopt.h>
#include <cstdlib>
#include "CommandLineOptions.h"
CommandLineOptions::CommandLineOptions(int argc, char * const argv[]){
+ qDebug() << "Received " << argc << "arguments.";
+ for (int i = argc; i != 0; i--)
+ qDebug() << i << " argument: " << argv[i];
// Parse command line arguments.
int longIndex = 0;
// TODO: clean output...
@@ -26,6 +29,7 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]){
switch(opt)
{
case 'u':
+ qDebug() << "Added URL to clOptions:" << optarg;
options.insert("url", optarg);
break;
case 'h':