Project

General

Profile

Actions

Bug #587

closed

lttng enable-event --help is missing a short option description

Added by Daniel U. Thibault over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Target version:
Start date:
07/08/2013
Due date:
% Done:

100%

Estimated time:

Description

In lttng-tools-2.2.0\src\bin\lttng\commands\enable_events.c, we have:

static struct poptOption long_options[] = {
    /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */
...
    {"filter",         'f', POPT_ARG_STRING, &opt_filter, OPT_FILTER, 0, 0},
    {0, 0, 0, 0, 0, 0, 0}
};

/*
 * usage
 */
static void usage(FILE *ofp)
{
    fprintf(ofp, "usage: lttng enable-event NAME[,NAME2,...] [-k|-u] [OPTIONS] \n");
    fprintf(ofp, "\n");
...
    fprintf(ofp, "Event options:\n");
    fprintf(ofp, "    --filter \'expression\'\n");
    fprintf(ofp, "                           Filter expression on event fields and context.\n");

The line:

    fprintf(ofp, "    --filter \'expression\'\n");

should be:

    fprintf(ofp, "-f, --filter \'expression\'\n");
Actions #1

Updated by David Goulet over 11 years ago

  • Status changed from New to Confirmed
  • Target version set to 2.2

Please provide a patch. Thanks!

Actions #2

Updated by David Goulet over 11 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF