Simpler, why not

This commit is contained in:
XANTRONIX Development 2016-07-06 19:03:19 -05:00
parent 3196fe9678
commit bb758adc2e

View file

@ -37,17 +37,9 @@ static void usage(int argc, char **argv, const char *message, ...) {
for (i=0; commands[i].name; i++) {
if (i == 0) {
fprintf(stderr, "usage: %s %s\n", argv[0], commands[i].name);
fprintf(stderr, "usage: %s %s ...\n", argv[0], commands[i].name);
} else {
int x, len = strlen(argv[0]);
fprintf(stderr, " ");
for (x=0; x<len; x++) {
fprintf(stderr, " ");
}
fprintf(stderr, " %s ...\n", commands[i].name);
fprintf(stderr, " %s %s ...\n", argv[0], commands[i].name);
}
}