Fix formatting of the usage() output
This commit is contained in:
parent
f84135f699
commit
638e2a132e
@ -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");
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user