[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/main.c between version 1.97 and 1.98

version 1.97, 2014/09/01 22:45:11 version 1.98, 2014/09/03 05:17:08
Line 150 
Line 150 
         show_usage = 0;          show_usage = 0;
         outmode = OUTMODE_DEF;          outmode = OUTMODE_DEF;
   
         while (-1 != (c = getopt(argc, argv, "aC:cfI:iklM:m:O:S:s:T:VW:w"))) {          while (-1 != (c = getopt(argc, argv, "aC:cfhI:iklM:m:O:S:s:T:VW:w"))) {
                 switch (c) {                  switch (c) {
                 case 'a':                  case 'a':
                         outmode = OUTMODE_ALL;                          outmode = OUTMODE_ALL;
Line 164 
Line 164 
                 case 'f':                  case 'f':
                         search.argmode = ARG_WORD;                          search.argmode = ARG_WORD;
                         break;                          break;
                   case 'h':
                           (void)strlcat(curp.outopts, "synopsis,", BUFSIZ);
                           outmode = OUTMODE_ALL;
                           break;
                 case 'I':                  case 'I':
                         if (strncmp(optarg, "os=", 3)) {                          if (strncmp(optarg, "os=", 3)) {
                                 fprintf(stderr,                                  fprintf(stderr,
Line 398 
Line 402 
   
         switch (argmode) {          switch (argmode) {
         case ARG_FILE:          case ARG_FILE:
                 fputs("usage: mandoc [-acfklV] [-Ios=name] "                  fputs("usage: mandoc [-acfhklV] [-Ios=name] "
                     "[-mformat] [-Ooption] [-Toutput] [-Wlevel]\n"                      "[-mformat] [-Ooption] [-Toutput] [-Wlevel]\n"
                     "\t      [file ...]\n", stderr);                      "\t      [file ...]\n", stderr);
                 break;                  break;
Line 408 
Line 412 
                     "\t   [section] name ...\n", stderr);                      "\t   [section] name ...\n", stderr);
                 break;                  break;
         case ARG_WORD:          case ARG_WORD:
                 fputs("usage: whatis [-acfklVw] [-C file] "                  fputs("usage: whatis [-acfhklVw] [-C file] "
                     "[-M path] [-m path] [-O outkey] [-S arch]\n"                      "[-M path] [-m path] [-O outkey] [-S arch]\n"
                     "\t      [-s section] name ...\n", stderr);                      "\t      [-s section] name ...\n", stderr);
                 break;                  break;
         case ARG_EXPR:          case ARG_EXPR:
                 fputs("usage: apropos [-acfklVw] [-C file] "                  fputs("usage: apropos [-acfhklVw] [-C file] "
                     "[-M path] [-m path] [-O outkey] [-S arch]\n"                      "[-M path] [-m path] [-O outkey] [-S arch]\n"
                     "\t       [-s section] expression ...\n", stderr);                      "\t       [-s section] expression ...\n", stderr);
                 break;                  break;

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98