Usage back to stderr.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@224 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Eric Weddington 2003-02-24 17:27:38 +00:00
parent e7b97b23f9
commit cc489a45e4
1 changed files with 21 additions and 21 deletions

42
main.c
View File

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