diff options
Diffstat (limited to 'akonadi2_cli/main.cpp')
-rw-r--r-- | akonadi2_cli/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/akonadi2_cli/main.cpp b/akonadi2_cli/main.cpp index 1a036d0..d23e070 100644 --- a/akonadi2_cli/main.cpp +++ b/akonadi2_cli/main.cpp | |||
@@ -36,9 +36,6 @@ | |||
36 | 36 | ||
37 | int main(int argc, char *argv[]) | 37 | int main(int argc, char *argv[]) |
38 | { | 38 | { |
39 | // load all modules | ||
40 | Module::loadModules(); | ||
41 | |||
42 | const bool interactive = isatty(fileno(stdin)); | 39 | const bool interactive = isatty(fileno(stdin)); |
43 | const bool startRepl = (argc == 1) && interactive; | 40 | const bool startRepl = (argc == 1) && interactive; |
44 | //TODO: make a json command parse cause that would be awesomesauce | 41 | //TODO: make a json command parse cause that would be awesomesauce |
@@ -67,5 +64,5 @@ int main(int argc, char *argv[]) | |||
67 | 64 | ||
68 | QStringList commands = app.arguments(); | 65 | QStringList commands = app.arguments(); |
69 | commands.removeFirst(); | 66 | commands.removeFirst(); |
70 | return Module::run(commands); | 67 | return Module::self()->run(commands); |
71 | } | 68 | } |