Changeset 543 for trunk/src/ocat.c


Ignore:
Timestamp:
02/11/10 13:07:22 (2 years ago)
Author:
eagle
Message:

fixed erroneous parsing sequence of option -h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ocat.c

    r542 r543  
    276276 
    277277   opterr = 0; 
    278    while ((c = getopt(argc, argv, "f:hI")) != -1) 
     278   while ((c = getopt(argc, argv, "f:I")) != -1) 
    279279      switch (c) 
    280280      { 
     
    287287            CNF(net_type) = NTYPE_I2P; 
    288288            break; 
    289          case 'h': 
    290             usage(argv[0]); 
    291             exit(1); 
     289 
    292290         case '?': 
    293291            break; 
     
    302300   opterr = 1; 
    303301   optind = 1; 
    304    while ((c = getopt(argc, argv, "f:IabBCd:rRiopl:t:T:s:u:4L:P:")) != -1) 
     302   while ((c = getopt(argc, argv, "f:IabBCd:hrRiopl:t:T:s:u:4L:P:")) != -1) 
    305303      switch (c) 
    306304      { 
     
    333331            urlconv = 1; 
    334332            break; 
     333 
     334         case 'h': 
     335            usage(argv[0]); 
     336            exit(1); 
    335337 
    336338         case 'l': 
Note: See TracChangeset for help on using the changeset viewer.