lttng.c: CMD_UNDEFINED is used for invalid args too
[lttng-tools.git] / src / bin / lttng / lttng.c
index d4dbe2697a8d2a591ed1c045267a559cee69420f..7ab1125e3240fad20a37babb74ebfdb15c6245f2 100644 (file)
@@ -84,6 +84,7 @@ static struct cmd_struct commands[] =  {
        { "load", cmd_load},
        { "track", cmd_track},
        { "untrack", cmd_untrack},
+       { "metadata", cmd_metadata},
        { NULL, NULL}   /* Array closure */
 };
 
@@ -128,6 +129,7 @@ static void usage(FILE *ofp)
        fprintf(ofp, "    load              Load session configuration\n");
        fprintf(ofp, "    track             Track specific system resources\n");
        fprintf(ofp, "    untrack           Untrack specific system resources\n");
+       fprintf(ofp, "    metadata          Regenerate the metadata of a session\n");
        fprintf(ofp, "\n");
        fprintf(ofp, "Each command also has its own -h, --help option.\n");
        fprintf(ofp, "\n");
@@ -394,7 +396,7 @@ static int parse_args(int argc, char **argv)
                ERR("Command error");
                break;
        case CMD_UNDEFINED:
-               ERR("Undefined command");
+               ERR("Undefined command or invalid arguments");
                break;
        case CMD_FATAL:
                ERR("Fatal error");
This page took 0.025638 seconds and 5 git commands to generate.