Fix formatting of the usage() output

This commit is contained in:
Scott Long 2022-01-06 22:59:18 -07:00
parent f84135f699
commit 638e2a132e
2 changed files with 4 additions and 4 deletions

View file

@ -113,4 +113,4 @@ slot_set(int argc, char **argv)
}
MPS_COMMAND(slot, set, slot_set, "status <enclosure handle> <slot number> "
"<status>", "Set status of the slot in the directly attached enclosure");
"<status>", "\n Set status of the slot in the directly attached enclosure");

View file

@ -65,10 +65,10 @@ usage(void)
} else {
(*cmd)->handler(&args, &desc);
if (strncmp((*cmd)->set, "top", 3) == 0)
fprintf(stderr, "%s %-30s\t%s\n",
fprintf(stderr, "%-16s %-28s%s\n",
(*cmd)->name, args, desc);
else
fprintf(stderr, "%s %s %-30s\t%s\n",
fprintf(stderr, "%-5s %-10s %-28s%s\n",
(*cmd)->set, (*cmd)->name, args, desc);
}
}
@ -87,7 +87,7 @@ version(int ac, char **av)
return (0);
}
MPS_COMMAND(top, version, version, "", "version")
MPS_COMMAND(top, version, version, "", "Version number")
int
main(int ac, char **av)