cli: do not use --component in help command, only use leftover argument
[babeltrace.git] / cli / babeltrace.c
index 064ced1dc1611f301daf74092690dc0d2bd38293..d70e4b9ebca06c6468cdc1d6e15c38d021d659f5 100644 (file)
@@ -1035,9 +1035,8 @@ int cmd_help(struct bt_config *cfg)
                if (cfg->cmd_data.help.cfg_component->type !=
                                BT_COMPONENT_CLASS_TYPE_UNKNOWN) {
                        if (strcmp(cfg->cmd_data.help.cfg_component->comp_cls_name->str,
-                                       comp_class_name) != 0 &&
-                                       type ==
-                                       cfg->cmd_data.help.cfg_component->type) {
+                                       comp_class_name) != 0 ||
+                                       type != cfg->cmd_data.help.cfg_component->type) {
                                bt_put(comp_cls);
                                continue;
                        }
This page took 0.023708 seconds and 4 git commands to generate.