summaryrefslogtreecommitdiffstats
path: root/src/CommandLineOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommandLineOptions.cpp')
-rw-r--r--src/CommandLineOptions.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/CommandLineOptions.cpp b/src/CommandLineOptions.cpp
index 67135f2..945cff9 100644
--- a/src/CommandLineOptions.cpp
+++ b/src/CommandLineOptions.cpp
@@ -13,12 +13,9 @@ CommandLineOptions::CommandLineOptions(int argc, char * const argv[]){
qDebug() << i << " argument: " << argv[i];
// Parse command line arguments.
int longIndex = 0;
- // TODO: clean output...
- static const char *optString = "uh";
+ static const char *optString = "u:h";
static const struct option longOpts[] =
{
- // If an option requires parameters, write this number instead of no_argument.
- // The last argument, is the corresponding char to the option string.
{"url", required_argument, NULL, 'u'},
{"help", no_argument, NULL, 'h'}
};