From 42ca00b101cd9f784660d1495aca23fa3dd1fe6e Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 14 Jun 2017 02:31:12 -0400 Subject: [PATCH] Fix: cli: help command: accept leftover when --component is not specified MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- cli/babeltrace-cfg-cli-args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/babeltrace-cfg-cli-args.c b/cli/babeltrace-cfg-cli-args.c index 394e9e65e..cd8fb1892 100644 --- a/cli/babeltrace-cfg-cli-args.c +++ b/cli/babeltrace-cfg-cli-args.c @@ -1890,7 +1890,7 @@ struct bt_config *bt_config_help_from_args(int argc, const char *argv[], leftover = poptGetArg(pc); if (leftover) { - if (!plug_comp_cls_names) { + if (plug_comp_cls_names) { printf_err("Cannot specify plugin name and --component component class:\n %s\n", leftover); goto error; -- 2.34.1