Change list command line options -l and -L
authorDavid Goulet <david.goulet@polymtl.ca>
Wed, 27 Apr 2011 15:40:13 +0000 (11:40 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Wed, 27 Apr 2011 15:40:26 +0000 (11:40 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng/options.c

index 11b82fba7da5ed1665724aa64197ec705a5faa33..59d59046dad25d43d680b638fa70dbd418203cb8 100644 (file)
@@ -49,10 +49,10 @@ static struct poptOption long_options[] = {
        {"create-session",  'c',        POPT_ARG_STRING,        &opt_create_session, 0, 0},
        {"quiet",                       'q',    POPT_ARG_VAL,           &opt_quiet, 1, 0},
        {"verbose",                     'v',    POPT_ARG_VAL,           &opt_verbose, 1, 0},
-       {"list-apps",           'l',    POPT_ARG_VAL,           &opt_list_apps, 1, 0},
+       {"list-apps",           'L',    POPT_ARG_VAL,           &opt_list_apps, 1, 0},
        {"no-sessiond",         0,              POPT_ARG_VAL,           &opt_no_sessiond, 1, 0},
        {"sessiond-path",       0,              POPT_ARG_STRING,        &opt_sessiond_path, 0, 0},
-       {"list-session",        0,              POPT_ARG_VAL,           &opt_list_session, 1, 0},
+       {"list-sessions",       'l',    POPT_ARG_VAL,           &opt_list_session, 1, 0},
        {"destroy-session", 'd',        POPT_ARG_STRING,        &opt_destroy_session, 0, 0},
        {0, 0, 0, 0, 0, 0}
 };
@@ -76,14 +76,14 @@ static void usage(FILE *ofp)
        fprintf(ofp, "\n");
        fprintf(ofp, "Session options:\n");
        fprintf(ofp, "  -c, --create-session NAME    Create a new session\n");
-       fprintf(ofp, "      --list-session           List all available sessions\n");
+       fprintf(ofp, "  -l, --list-sessions          List all available sessions\n");
        fprintf(ofp, "  -s, --session UUID           Specify tracing session using UUID.\n");
        fprintf(ofp, "  -d, --destroy-session=NAME   Destroy the session specified by NAME\n");
        fprintf(ofp, "\n");
        fprintf(ofp, "Tracing options:\n");
        //fprintf(ofp, "      --kernel               Enable kernel tracing\n");
        //fprintf(ofp, "      --no-kernel            Disable kernel tracing\n");
-       fprintf(ofp, "  -l, --list-apps              List traceable UST applications\n");
+       fprintf(ofp, "  -L, --list-apps              List traceable UST applications\n");
 }
 
 /*
This page took 0.034869 seconds and 4 git commands to generate.