diff options
| author | Jonathan Bauer | 2011-03-05 16:55:26 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-05 16:55:26 +0100 |
| commit | 602106a89c654762d8963f8ab57142c48dc19983 (patch) | |
| tree | b9865cd69830d0f1cecf3db6a5caf6941982e056 /src/CommandLineOptions.cpp | |
| parent | misc. (diff) | |
| download | fbgui-602106a89c654762d8963f8ab57142c48dc19983.tar.gz fbgui-602106a89c654762d8963f8ab57142c48dc19983.tar.xz fbgui-602106a89c654762d8963f8ab57142c48dc19983.zip | |
URL parsing now works with CommandLineOptions. Incomplete...
Diffstat (limited to 'src/CommandLineOptions.cpp')
| -rw-r--r-- | src/CommandLineOptions.cpp | 6 |
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': |
