static void usage(FILE *ofp)
{
fprintf(ofp, "LTTng Trace Control " VERSION" - " VERSION_NAME"\n\n");
- fprintf(ofp, "usage: lttng [OPTIONS] <COMMAND>\n");
+ fprintf(ofp, "usage: lttng [OPTIONS] <COMMAND> [<ARGS>]\n");
fprintf(ofp, "\n");
fprintf(ofp, "Options:\n");
fprintf(ofp, " -h, --help Show this help\n");
}
/* Command not found */
- ret = -1;
+ ret = CMD_UNDEFINED;
end:
return ret;
case CMD_FATAL:
ERR("Fatal error");
break;
+ case CMD_UNSUPPORTED:
+ ERR("Unsupported command");
+ break;
case -1:
usage(stderr);
ret = 1;