Changeset 2149
- Timestamp:
- 07/29/08 21:30:55 (5 months ago)
- Files:
-
- libswish3/trunk/src/swish_lint.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libswish3/trunk/src/swish_lint.c
r2140 r2149 32 32 33 33 int debug = 0; 34 int verbose = 0; 34 35 35 36 int main( … … 56 57 {"help", no_argument, 0, 'h'}, 57 58 {"tokenize3", no_argument, 0, 't'}, 59 {"verbose", no_argument, 0, 'v'}, 58 60 {0, 0, 0, 0} 59 61 }; … … 81 83 char *descr = "swish_lint is an example program for using libswish3\n"; 82 84 printf("swish_lint [opts] [- | file(s)]\n"); 83 printf("opts:\n --config conf_file.xml\n --debug [lvl]\n --help\n ");85 printf("opts:\n --config conf_file.xml\n --debug [lvl]\n --help\n --verbose\n"); 84 86 printf("\n%s\n", descr); 85 87 printf("Debugging env vars:\n"); … … 127 129 swish_debug_docinfo(parser_data->docinfo); 128 130 129 if (SWISH_DEBUG & SWISH_DEBUG_WORDLIST) { 131 if (SWISH_DEBUG & SWISH_DEBUG_WORDLIST 132 || verbose 133 ) { 130 134 if (parser_data->s3->analyzer->tokenlist) { 131 135 swish_debug_token_list(parser_data->token_iterator); … … 163 167 s3 = swish_init_swish3(&handler, NULL); 164 168 165 while ((ch = getopt_long(argc, argv, "c:d:f:ht ", longopts, &option_index)) != -1) {169 while ((ch = getopt_long(argc, argv, "c:d:f:htv", longopts, &option_index)) != -1) { 166 170 167 171 switch (ch) { … … 195 199 break; 196 200 201 case 'v': 202 verbose = 1; 203 break; 204 197 205 case '?': 198 206 case 'h':
