From: Philippe Proulx Date: Wed, 14 Jun 2017 06:31:12 +0000 (-0400) Subject: Fix: cli: help command: accept leftover when --component is not specified X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=42ca00b101cd9f784660d1495aca23fa3dd1fe6e;p=babeltrace.git Fix: cli: help command: accept leftover when --component is not specified Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/cli/babeltrace-cfg-cli-args.c b/cli/babeltrace-cfg-cli-args.c index 394e9e65..cd8fb189 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;