Improve terminal dump usage message
This commit is contained in:
parent
602e9bb80c
commit
92425af0cc
14
src/term.c
14
src/term.c
|
@ -232,12 +232,14 @@ static int hexdump_buf(FILE * f, int startaddr, unsigned char * buf, int len)
|
||||||
static int cmd_dump(PROGRAMMER * pgm, struct avrpart * p,
|
static int cmd_dump(PROGRAMMER * pgm, struct avrpart * p,
|
||||||
int argc, char * argv[])
|
int argc, char * argv[])
|
||||||
{
|
{
|
||||||
if (argc < 2) {
|
if (argc < 2 || argc > 4) {
|
||||||
avrdude_message(MSG_INFO, "Usage: %s <memtype> [<start addr> <len>]\n"
|
avrdude_message(MSG_INFO,
|
||||||
" %s <memtype> [<start addr> <...>]\n"
|
"Usage: %s <memory> <addr> <len>\n"
|
||||||
" %s <memtype> <...>\n"
|
" %s <memory> <addr> ...\n"
|
||||||
" %s <memtype>\n",
|
" %s <memory> <addr>\n"
|
||||||
argv[0], argv[0], argv[0], argv[0]);
|
" %s <memory> ...\n"
|
||||||
|
" %s <memory>\n",
|
||||||
|
argv[0], argv[0], argv[0], argv[0], argv[0]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue