X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Flttng.c;h=71bc1bf7706f57804833f9de90982ce0a4d0f7e0;hp=71ef7ed05ef93846aa21054b00de4f21b821a561;hb=4747a49b20089e4ac15d02a5191bd6cca8567e2f;hpb=ca1c3607d2f5654163875cda874f43971df0f696 diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index 71ef7ed05..71bc1bf77 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -412,7 +412,8 @@ static int check_args_no_sessiond(int argc, char **argv) if ((strncmp(argv[i], "-h", sizeof("-h")) == 0) || strncmp(argv[i], "--h", sizeof("--h")) == 0 || strncmp(argv[i], "--list-options", sizeof("--list-options")) == 0 || - strncmp(argv[i], "--list-commands", sizeof("--list-commands")) == 0) { + strncmp(argv[i], "--list-commands", sizeof("--list-commands")) == 0 || + strncmp(argv[i], "version", sizeof("version"))) { return 1; } }