Improve terminal help message

This commit is contained in:
Stefan Rueger 2022-07-12 11:50:23 +01:00
parent 92425af0cc
commit c5f522342d
1 changed files with 5 additions and 5 deletions

View File

@ -92,9 +92,9 @@ static int cmd_verbose (PROGRAMMER * pgm, struct avrpart * p,
int argc, char *argv[]); int argc, char *argv[]);
struct command cmd[] = { struct command cmd[] = {
{ "dump", cmd_dump, "dump memory : %s <memtype> <addr> <N-Bytes>" }, { "dump", cmd_dump, "%s <memory> [<addr> <len> | <addr> ... | <addr> | ...]" },
{ "read", cmd_dump, "alias for dump" }, { "read", cmd_dump, "alias for dump" },
{ "write", cmd_write, "write memory : %s <memtype> <addr> <b1> <b2> ... <bN>" }, { "write", cmd_write, "%s <memory> <addr> [<data>[,] {<data>[,]} | <len> <data>[,] {<data>[,]} ...]" },
{ "erase", cmd_erase, "perform a chip erase" }, { "erase", cmd_erase, "perform a chip erase" },
{ "sig", cmd_sig, "display device signature bytes" }, { "sig", cmd_sig, "display device signature bytes" },
{ "part", cmd_part, "display the current part information" }, { "part", cmd_part, "display the current part information" },
@ -1162,9 +1162,9 @@ static int cmd_help(PROGRAMMER * pgm, struct avrpart * p,
{ {
int i; int i;
fprintf(stdout, "Valid commands:\n\n"); fprintf(stdout, "Valid commands:\n");
for (i=0; i<NCMDS; i++) { for (i=0; i<NCMDS; i++) {
fprintf(stdout, " %-6s : ", cmd[i].name); fprintf(stdout, " %-7s : ", cmd[i].name);
fprintf(stdout, cmd[i].desc, cmd[i].name); fprintf(stdout, cmd[i].desc, cmd[i].name);
fprintf(stdout, "\n"); fprintf(stdout, "\n");
} }