/ [swis] / trunk / src / html-strip.l
To checkout: svn checkout http://svn.gnu.org.ua/sources/swis/trunk/src/html-strip.l
Puszcza

Diff of /trunk/src/html-strip.l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by gray, Thu Oct 4 07:12:57 2007 UTC revision 13 by gray, Thu Oct 4 12:10:46 2007 UTC
# Line 241  Line 241 
241    { "version", no_argument, NULL, 'v' },    { "version", no_argument, NULL, 'v' },
242    { "output", required_argument, NULL, 'o' },    { "output", required_argument, NULL, 'o' },
243    { "tag", no_argument, NULL, 't' },    { "tag", no_argument, NULL, 't' },
244      { "files-from", required_argument, NULL, 'T' },
245      { "null", no_argument, NULL, '0' },
246    { NULL }    { NULL }
247  };  };
248    
 DECL_COPYRIGHT;  
   
249  void  void
250  usage ()  usage ()
251  {  {
# Line 255  Line 255 
255    printf ("  -d, --debug                    output debugging info\n");    printf ("  -d, --debug                    output debugging info\n");
256    printf ("  -o, --output=FILE              direct output to FILE instead of stdout\n");    printf ("  -o, --output=FILE              direct output to FILE instead of stdout\n");
257    printf ("  -t, --tag                      tag each output block with the source file name");    printf ("  -t, --tag                      tag each output block with the source file name");
258      printf ("  -T, --from-file=FILE           read input file names from FILE\n");
259      printf ("  -0, --null                     -T reads null-terminated names\n");
260    printf ("\n");    printf ("\n");
261    printf ("  -h, --help                     print this help list\n");    printf ("  -h, --help                     print this help list\n");
262    printf ("  -v, --version                  print program version and exit\n");    printf ("  -v, --version                  print program version and exit\n");
# Line 270  Line 272 
272    program_name = argv[0];    program_name = argv[0];
273    yy_flex_debug = 0;    yy_flex_debug = 0;
274    
275    while ((c = getopt_long (argc, argv, "dho:tv", options, NULL)) != EOF)    while ((c = getopt_long (argc, argv, "0dhoT::tv", options, NULL)) != EOF)
276      {      {
277        switch (c)        switch (c)
278          {          {
279            case '0':
280              filename_terminator = 0;
281              break;
282              
283          case 'd':          case 'd':
284            yy_flex_debug = 1;            yy_flex_debug = 1;
285            break;            break;
# Line 292  Line 298 
298              error (1, errno, "cannot open output file %s", optarg);              error (1, errno, "cannot open output file %s", optarg);
299            break;            break;
300    
301            case 'T':
302              read_names_from_file (optarg);
303              break;
304              
305          case 't':          case 't':
306            tag_option = 1;            tag_option = 1;
307            break;            break;
308                        
309          case 'v':          case 'v':
310            version_etc (stdout, "html-strip", PACKAGE_NAME, VERSION,            swis_version (stdout, "html-strip");
                        PACKAGE_AUTHOR, NULL);  
311            exit (0);            exit (0);
312                        
313          default:          default:
# Line 309  Line 318 
318    argc -= optind;    argc -= optind;
319    argv += optind;    argv += optind;
320    
321      update_argcv (&argc, &argv);
322      
323    if (argc)    if (argc)
324      {      {
325        input_file = argv;        input_file = argv;

Legend:
Removed from v.12  
changed lines
  Added in v.13

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20