summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-08 11:03:34 +0100
committerJonathan Bauer2011-03-08 11:03:34 +0100
commit1a98ba05a9e48bedc824bfa38d4f8057de2f49ba (patch)
tree64198172a4fa6c6aafa7fe0326d9cccffc85b2df /src/main.cpp
parentremoved old line (diff)
downloadfbgui-1a98ba05a9e48bedc824bfa38d4f8057de2f49ba.tar.gz
fbgui-1a98ba05a9e48bedc824bfa38d4f8057de2f49ba.tar.xz
fbgui-1a98ba05a9e48bedc824bfa38d4f8057de2f49ba.zip
.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8a38d93..ad60715 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -12,9 +12,10 @@ void printHelp()
QTextStream qout(stdout);
qout << QObject::tr("Usage: ./fbgui [OPTIONS]") << endl;
qout << QObject::tr("Options:") << endl;
- qout << "-u <URL>, --url=<URL> " << QObject::tr("Set which URL to load.") << endl;
- qout << "-d, --debug " << QObject::tr("Activate debug mode.") << endl;
- qout << "-h, --help " << QObject::tr("Prints usage information.") << endl;
+ qout << "-u <URL>, --url=<URL> " << QObject::tr("Set which URL to load.") << endl;
+ qout << "-d <dir>, --downloaddir <dir> " << QObject::tr("Specifiy the download directory.") << endl;
+ qout << "-D, --debug " << QObject::tr("Activate debug mode.") << endl;
+ qout << "-h, --help " << QObject::tr("Prints usage information.") << endl;
qout.flush();
exit(EXIT_SUCCESS);
}
@@ -39,7 +40,7 @@ int main(int argc, char *argv[])
static const struct option longOpts[] =
{
{"url", required_argument, NULL, 'u'},
- {"downloadtodir", required_argument, NULL, 'd'},
+ {"downloaddir", required_argument, NULL, 'd'},
{"debug", no_argument, NULL, 'D'},
{"help", no_argument, NULL, 'h'}
};