Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 4abb865

Browse files
committed
Fixed bug with --version
1 parent d11f305 commit 4abb865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class TaskMakerMain {
1212
explicit TaskMakerMain(kj::ProcessContext& context)
1313
: context(context), wm(&context), sm(&context), bm(&context) {}
1414
kj::MainFunc getMain() {
15-
return kj::MainBuilder(context, "Task-Maker (" + util::version + ")",
16-
"The new cmsMake!")
15+
static std::string version = "Task-Maker (" + util::version + ")";
16+
return kj::MainBuilder(context, version, "The new cmsMake!")
1717
.addSubCommand("worker", KJ_BIND_METHOD(wm, getMain), "run the worker")
1818
.addSubCommand("server", KJ_BIND_METHOD(sm, getMain), "run the server")
1919
.addSubCommand("sandbox", KJ_BIND_METHOD(bm, getMain),

0 commit comments

Comments
 (0)