summaryrefslogtreecommitdiffstats
path: root/src/CommandLineOptions.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-05 23:07:17 +0100
committerJonathan Bauer2011-03-05 23:07:17 +0100
commitb8a27aee192e3ad06eeb8fd3dcf1e525a88bc115 (patch)
treefd8fdfc478b7a672b0398eabff0e579258acd099 /src/CommandLineOptions.cpp
parentmore random things... (diff)
downloadfbgui-b8a27aee192e3ad06eeb8fd3dcf1e525a88bc115.tar.gz
fbgui-b8a27aee192e3ad06eeb8fd3dcf1e525a88bc115.tar.xz
fbgui-b8a27aee192e3ad06eeb8fd3dcf1e525a88bc115.zip
url short option fixed
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'}
};