Otherwise, `babeltrace -vvv list-plugins` passes and tries to open the
`list-plugins` directory with ctf.fs.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
struct bt_value *instance_names = NULL;
struct bt_value *connection_args = NULL;
char error_buf[256] = { 0 };
+ bool got_verbose_opt = false;
*retcode = 0;
memset(&ctf_legacy_opts, 0, sizeof(ctf_legacy_opts));
BT_PUT(cfg);
goto end;
case OPT_VERBOSE:
+ if (got_verbose_opt) {
+ printf_err("Duplicate -v option\n");
+ goto error;
+ }
+
text_legacy_opts.verbose = true;
cfg->verbose = true;
+ got_verbose_opt = true;
break;
case OPT_DEBUG:
cfg->debug = true;