lttng: show man page when using command's --help
[lttng-tools.git] / src / bin / lttng / commands / enable_channels.c
index 673fecfc57a0aeb394135b3b92a9e2c1d350ec82..93d81d7355167a310685f9a75209009e55d9e195 100644 (file)
@@ -380,6 +380,7 @@ static void init_channel_config(void)
         * those needed to be set by the default values.
         */
        memset(&chan.attr, -1, sizeof(chan.attr));
+       chan.attr.extended.ptr = NULL;
 }
 
 /*
@@ -400,7 +401,7 @@ int cmd_enable_channels(int argc, const char **argv)
        while ((opt = poptGetNextOpt(pc)) != -1) {
                switch (opt) {
                case OPT_HELP:
-                       usage(stdout);
+                       SHOW_HELP();
                        goto end;
                case OPT_DISCARD:
                        chan.attr.overwrite = 0;
This page took 0.023624 seconds and 4 git commands to generate.