diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/main.cpp b/src/cmd/main.cpp index acb221354..3a6bd4e36 100644 --- a/src/cmd/main.cpp +++ b/src/cmd/main.cpp @@ -35,8 +35,6 @@ int help(int , char* argv[]) std::cout << "Available commands:\n"; - Botan::LibraryInitializer init; - size_t idx = 1; for(auto&& app: apps) { @@ -165,6 +163,8 @@ int main(int argc, char* argv[]) if(cmd == "help" || cmd == "-h") return help(argc, argv); + Botan::LibraryInitializer init; + AppRegistrations& apps = AppRegistrations::instance(); if(apps.has(cmd)) return apps.run(cmd, argc - 1, argv + 1); @@ -185,4 +185,3 @@ int main(int argc, char* argv[]) return 0; } - |