avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [RFC] New usage text


From: E. Weddington
Subject: [avrdude-dev] [RFC] New usage text
Date: Fri, 21 Feb 2003 13:29:37 -0700

This would increase the verbosity of the usage text. Comments?

Eric

Index: avrdude/main.c
===================================================================
RCS file: /cvsroot/avrdude/avrdude/main.c,v
retrieving revision 1.56
diff -u -r1.56 main.c
--- avrdude/main.c      13 Feb 2003 19:27:50 -0000      1.56
+++ avrdude/main.c      14 Feb 2003 20:53:17 -0000
@@ -109,14 +109,33 @@
  */
 void usage(void)
 {
-  fprintf(stderr,
-          "\nUsage: %s -p partno [-e] [-E exitspec[,exitspec]] [-f format] "
-          "[-F]\n"
-          "      %s[-i filename] [-m memtype] [-o filename] [-P port] "
-          "[-t]\n"
-          "      %s[-c programmer] [-C config-file] [-v [-v]] [-n]\n\n",
-          progname, progbuf, progbuf);
-
+       printf(
+               "Usage: %s [options]\n"
+               "Options:\n"
+               "  -p <partno>                Required. Specify AVR device.\n"
+               "  -C <config-file>           Specify location of configuration 
file.\n"
+               "  -c <programmer>            Specify programmer type.\n"
+               "  -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"
+               "\nReport bugs at 
<URL:http://savannah.nongnu.org/projects/avrdude>\n"
+               ,progname);
 }
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]