Print out a list of valid parts for '-p ?' and a list of valid
programmers for '-c ?'. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@254 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
143e30d32c
commit
bec6fe57d4
21
main.c
21
main.c
|
@ -565,6 +565,27 @@ int main(int argc, char * argv [])
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (partdesc) {
|
||||||
|
if (strcmp(partdesc, "?") == 0) {
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
fprintf(stderr,"Valid parts are:\n");
|
||||||
|
list_parts(stderr, " ", part_list);
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (programmer) {
|
||||||
|
if (strcmp(programmer, "?") == 0) {
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
fprintf(stderr,"Valid programmers are:\n");
|
||||||
|
list_programmers(stderr, " ", programmers);
|
||||||
|
fprintf(stderr,"\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (programmer[0] == 0) {
|
if (programmer[0] == 0) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\n%s: no programmer has been specified on the command line "
|
"\n%s: no programmer has been specified on the command line "
|
||||||
|
|
Loading…
Reference in New Issue