aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorgny Nyblom <kde@nyblom.org>2010-12-12 12:32:16 +0100
committerTorgny Nyblom <kde@nyblom.org>2010-12-12 12:32:16 +0100
commite5c890d567361cd38bf173c2163d3f07f6e993fb (patch)
tree50535252c737301d1f3f1a9bef182164135b6742
parentce56750e8a47e3be86cf0c0964a145c7d7f943e5 (diff)
downloadsvn2git-e5c890d567361cd38bf173c2163d3f07f6e993fb.tar
svn2git-e5c890d567361cd38bf173c2163d3f07f6e993fb.tar.gz
svn2git-e5c890d567361cd38bf173c2163d3f07f6e993fb.tar.bz2
svn2git-e5c890d567361cd38bf173c2163d3f07f6e993fb.tar.xz
svn2git-e5c890d567361cd38bf173c2163d3f07f6e993fb.zip
Duh, do not try and extract options before they are parsed.
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d6a5a6b..af3699c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -114,8 +114,8 @@ static const CommandLineOption options[] = {
int main(int argc, char **argv)
{
CommandLineParser::init(argc, argv);
- Stats::init();
CommandLineParser::addOptionDefinitions(options);
+ Stats::init();
CommandLineParser *args = CommandLineParser::instance();
if (args->contains(QLatin1String("help")) || args->arguments().count() != 1) {
args->usage(QString(), "[Path to subversion repo]");