Ignore:
Timestamp:
05/07/08 14:11:21 (17 years ago)
Author:
obrebski <obrebski@…>
Branches:
master, help
Children:
f5d3b20
Parents:
13a8a67
git-author:
obrebski <obrebski@…> (05/07/08 14:11:21)
git-committer:
obrebski <obrebski@…> (05/07/08 14:11:21)
Message:

w struktura.txt wpisalem sugestie R.D.
dgp obsluguje configa

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@37 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/src/dgp/main.cc

    r13a8a67 rdf77b87  
    3535  gengetopt_args_info args; 
    3636 
    37   if(cmdline_parser(argc,argv,&args) != 0) exit(1); 
     37  if(cmdline_parser(argc,argv,&args) != 0) 
     38    exit(1); 
    3839 
    39   if(args.help_given) cmdline_parser_print_help (); 
     40  process_config_files(&args,argv[0]); 
     41  process_common_options(&args,argv[0]); 
    4042 
    41   if(args.input_given) 
    42     if(!(inputf=fopen(args.input_arg,"r"))) 
    43       fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1); 
     43//   if(args.help_given) cmdline_parser_print_help (); 
    4444 
    45   if(args.output_given) 
    46     if(!(outputf=fopen(args.output_arg,"w"))) 
    47       fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1); 
     45//   if(args.input_given) 
     46//     if(!(inputf=fopen(args.input_arg,"r"))) 
     47//       fprintf(stderr,"dgp: input file not found: %s.\n", args.input_arg), exit(1); 
     48 
     49//   if(args.output_given) 
     50//     if(!(outputf=fopen(args.output_arg,"w"))) 
     51//       fprintf(stderr,"dgp: cannot open output file: %s.\n", args.output_arg), exit(1); 
    4852 
    4953  if(!(grammarf=fopen(args.grammar_arg,"r"))) 
Note: See TracChangeset for help on using the changeset viewer.