From 3f33095fd751d14ac3d97c7ec9a8939134751b9a Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 15 Dec 2021 02:07:27 +0300 Subject: [PATCH] Do not try to initialize client in simple-offsets --- src/cli.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli.cpp b/src/cli.cpp index 6e519110..8e6adb61 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -305,6 +305,10 @@ void cli_tool_t::run(json11::Json cfg) fprintf(stderr, "unknown command: %s\n", cmd[0].string_value().c_str()); exit(1); } + if (action_cb == NULL) + { + return; + } color = !cfg["no-color"].bool_value(); json_output = cfg["json"].bool_value(); iodepth = cfg["iodepth"].uint64_value();