Improve terminal dump usage message
This commit is contained in:
parent
602e9bb80c
commit
92425af0cc
16
src/term.c
16
src/term.c
|
@ -232,13 +232,15 @@ 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"
|
||||||
return -1;
|
" %s <memory>\n",
|
||||||
|
argv[0], argv[0], argv[0], argv[0], argv[0]);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum { read_size = 256 };
|
enum { read_size = 256 };
|
||||||
|
|
Loading…
Reference in New Issue