3e52d7dd6416520e54d7ad115883b2e602c2093f
kent
  Tue Mar 20 17:15:38 2012 -0700
Adding a couple of comments, one of them to the generated code.
diff --git src/utils/newProg/newProg.c src/utils/newProg/newProg.c
index c9f1b1b..a8ceb3b 100644
--- src/utils/newProg/newProg.c
+++ src/utils/newProg/newProg.c
@@ -14,30 +14,31 @@
 {
 errAbort(
   "newProg - make a new C source skeleton.\n"
   "usage:\n"
   "   newProg progName description words\n"
   "This will make a directory 'progName' and a file in it 'progName.c'\n"
   "with a standard skeleton\n"
   "\n"
   "Options:\n"
   "   -jkhgap - include jkhgap.a and mysql libraries as well as jkweb.a archives \n"
   "   -cgi    - create shell of a CGI script for web\n"
   "   -cvs    - also check source into CVS, 'progName' must include full\n"
   "           - path in source repository starting with 'kent/'");
 }
 
+/* Command line validation table. */
 static struct optionSpec options[] = {
    {"jkhgap", OPTION_BOOLEAN},
    {"cgi", OPTION_BOOLEAN},
    {"cvs", OPTION_BOOLEAN},
    {NULL, 0},
 };
 
 void makeCgiBody(char *name, char *description, FILE *f)
 /* Create most of the C file for a CGI. */
 {
 fprintf(f,
 "/* Global Variables */\n"
 "struct cart *cart;             /* CGI and other variables */\n"
 "struct hash *oldVars = NULL;\n"
 "\n"
@@ -80,30 +81,31 @@
 /* Make the usage routine. */
 fprintf(f, "void usage()\n");
 fprintf(f, "/* Explain usage and exit. */\n");
 fprintf(f, "{\n");
 fprintf(f, "errAbort(\n");
 fprintf(f, "  \"%s - %s\\n\"\n", name, description);
 fprintf(f, "  \"usage:\\n\"\n");
 fprintf(f, "  \"   %s XXX\\n\"\n", name);
 fprintf(f, "  \"options:\\n\"\n");
 fprintf(f, "  \"   -xxx=XXX\\n\"\n");
 fprintf(f, "  );\n");
 fprintf(f, "}\n");
 fprintf(f, "\n");
 
 /* Initialize options array to empty */
+fprintf(f, "/* Command line validation table. */\n");
 fprintf(f, "static struct optionSpec options[] = {\n");
 fprintf(f, "   {NULL, 0},\n");
 fprintf(f, "};\n");
 fprintf(f, "\n");
 
 /* Make the processing routine. */
 fprintf(f, "void %s(char *XXX)\n", name);
 fprintf(f, "/* %s - %s. */\n", name, description);
 fprintf(f, "{\n");
 fprintf(f, "}\n");
 fprintf(f, "\n");
 
 /* Make the main routine. */
 fprintf(f, "int main(int argc, char *argv[])\n");
 fprintf(f, "/* Process command line. */\n");