Change usage text to be verbose.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@217 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
arcanum 2003-02-21 21:04:34 +00:00
parent 1164e56da4
commit 131cd12d10
1 changed files with 21 additions and 8 deletions

29
main.c
View File

@ -109,14 +109,27 @@ int do_cycles; /* track erase-rewrite cycles */
*/ */
void usage(void) void usage(void)
{ {
fprintf(stderr, printf(
"\nUsage: %s -p partno [-e] [-E exitspec[,exitspec]] [-f format] " "Usage: %s [options]\n"
"[-F]\n" "Options:\n"
" %s[-i filename] [-m memtype] [-o filename] [-P port] " " -p <partno> Required. Specify AVR device.\n"
"[-t]\n" " -C <config-file> Specify location of configuration file.\n"
" %s[-c programmer] [-C config-file] [-v [-v]] [-n]\n\n", " -c <programmer> Specify programmer type.\n"
progname, progbuf, progbuf); " -P <port> Specify connection port.\n"
" -F Override invalid signature check.\n"
" -e Perform a chip erase.\n"
" -m <memtype> Memory type to operate on.\n"
" -i <filename> Write device. Specify an input file.\n"
" -o <filename> Read device. Specify an output file.\n"
" -f <format> Specify the file format.\n"
" -n Do not write anything to the device.\n"
" -V Do not verify.\n"
" -t Enter terminal mode.\n"
" -E <exitspec>[,<exitspec>] List programmer exit specifications.\n"
" -v Verbose output. An additional -v can be added.\n"
" -? Display this usage.\n"
"\navrdude project: <URL:http://savannah.nongnu.org/projects/avrdude>\n"
,progname);
} }