projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cli: set `bt_config::command_name` field for all commands
[babeltrace.git]
/
src
/
cli
/
babeltrace2-cfg-cli-args.c
diff --git
a/src/cli/babeltrace2-cfg-cli-args.c
b/src/cli/babeltrace2-cfg-cli-args.c
index 57ccabf3713ae24a914409b0f9234ca22e1c6d6b..f0c64a3f18e8a7b67aad05d129ae6a87d5f2b16d 100644
(file)
--- a/
src/cli/babeltrace2-cfg-cli-args.c
+++ b/
src/cli/babeltrace2-cfg-cli-args.c
@@
-4613,14
+4613,19
@@
struct bt_config *bt_config_cli_args_create(int argc, const char *argv[],
if (strcmp(item_non_opt->arg, "convert") == 0) {
command_type = COMMAND_TYPE_CONVERT;
if (strcmp(item_non_opt->arg, "convert") == 0) {
command_type = COMMAND_TYPE_CONVERT;
+ command_name = "convert";
} else if (strcmp(item_non_opt->arg, "list-plugins") == 0) {
command_type = COMMAND_TYPE_LIST_PLUGINS;
} else if (strcmp(item_non_opt->arg, "list-plugins") == 0) {
command_type = COMMAND_TYPE_LIST_PLUGINS;
+ command_name = "list-plugins";
} else if (strcmp(item_non_opt->arg, "help") == 0) {
command_type = COMMAND_TYPE_HELP;
} else if (strcmp(item_non_opt->arg, "help") == 0) {
command_type = COMMAND_TYPE_HELP;
+ command_name = "help";
} else if (strcmp(item_non_opt->arg, "query") == 0) {
command_type = COMMAND_TYPE_QUERY;
} else if (strcmp(item_non_opt->arg, "query") == 0) {
command_type = COMMAND_TYPE_QUERY;
+ command_name = "query";
} else if (strcmp(item_non_opt->arg, "run") == 0) {
command_type = COMMAND_TYPE_RUN;
} else if (strcmp(item_non_opt->arg, "run") == 0) {
command_type = COMMAND_TYPE_RUN;
+ command_name = "run";
} else {
/*
* Non-option argument, but not a known
} else {
/*
* Non-option argument, but not a known
This page took
0.043847 seconds
and
4
git commands to generate.