Fix: cli: help command: accept leftover when --component is not specified
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 14 Jun 2017 06:31:12 +0000 (02:31 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 14 Jun 2017 21:37:22 +0000 (17:37 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
cli/babeltrace-cfg-cli-args.c

index 394e9e65e318d216acb5611e6ff8ba5cec4c7d5e..cd8fb1892d831656017865e400f0918c941c715a 100644 (file)
@@ -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;
This page took 0.025991 seconds and 4 git commands to generate.