diff options
| author | Jonathan Bauer | 2011-03-05 23:07:17 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-05 23:07:17 +0100 |
| commit | b8a27aee192e3ad06eeb8fd3dcf1e525a88bc115 (patch) | |
| tree | fd8fdfc478b7a672b0398eabff0e579258acd099 /src/CommandLineOptions.cpp | |
| parent | more random things... (diff) | |
| download | fbgui-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.cpp | 5 |
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'} }; |
