cli: set all the log level of all known loggers with -v and -d
[babeltrace.git] / cli / babeltrace-cfg-cli-args.c
index 6a711726dd03b43bd9191e59ecebcc376863b565..27514ba41b20f124edda6b690b3ef09ab9f1a4df 100644 (file)
@@ -4703,6 +4703,12 @@ struct bt_config *bt_config_convert_from_args(int argc, const char *argv[],
        cfg = bt_config_run_from_args_array(run_args, retcode,
                force_omit_system_plugin_path, force_omit_home_plugin_path,
                initial_plugin_paths);
+       if (!cfg) {
+               goto error;
+       }
+
+       cfg->debug = got_debug_opt;
+       cfg->verbose = got_verbose_opt;
        goto end;
 
 error:
This page took 0.023464 seconds and 4 git commands to generate.