lemon/arg_parser.cc
changeset 112 d2ee5e7f00ef
parent 85 3453d20a82cd
child 128 7cd965d2257f
equal deleted inserted replaced
0:26ec55b86111 1:6f1138150282
    67     p.int_p=new int(value);
    67     p.int_p=new int(value);
    68     p.self_delete=true;
    68     p.self_delete=true;
    69     p.help=help;
    69     p.help=help;
    70     p.type=INTEGER;
    70     p.type=INTEGER;
    71     p.mandatory=obl;
    71     p.mandatory=obl;
    72     p.self_delete=true;
       
    73     _opts[name]=p;
    72     _opts[name]=p;
    74     return *this;
    73     return *this;
    75   }
    74   }
    76 
    75 
    77   ArgParser &ArgParser::doubleOption(const std::string &name,
    76   ArgParser &ArgParser::doubleOption(const std::string &name,
    97     p.self_delete=true;
    96     p.self_delete=true;
    98     p.help=help;
    97     p.help=help;
    99     p.type=BOOL;
    98     p.type=BOOL;
   100     p.mandatory=obl;
    99     p.mandatory=obl;
   101     _opts[name]=p;
   100     _opts[name]=p;
   102 
       
   103     value = false;
       
   104 
       
   105     return *this;
   101     return *this;
   106   }
   102   }
   107 
   103 
   108   ArgParser &ArgParser::stringOption(const std::string &name,
   104   ArgParser &ArgParser::stringOption(const std::string &name,
   109 			       const std::string &help,
   105 			       const std::string &help,