From b8a27aee192e3ad06eeb8fd3dcf1e525a88bc115 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Sat, 5 Mar 2011 23:07:17 +0100 Subject: url short option fixed --- src/CommandLineOptions.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/CommandLineOptions.cpp') 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'} }; -- cgit v1.2.3-55-g7522