gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Bug fix in arg_parser.h (fix ticket #31) and doc improvements
0 1 0
default
1 file changed with 16 insertions and 16 deletions:
↑ Collapse diff ↑
Show white space 6 line context
... ...
@@ -129,3 +129,3 @@
129 129
    ///\param help A help string.
130
    ///\param value A default value for the option
130
    ///\param value A default value for the option.
131 131
    ///\param obl Indicate if the option is mandatory.
... ...
@@ -139,3 +139,3 @@
139 139
    ///\param help A help string.
140
    ///\param value A default value for the option
140
    ///\param value A default value for the option.
141 141
    ///\param obl Indicate if the option is mandatory.
... ...
@@ -149,5 +149,5 @@
149 149
    ///\param help A help string.
150
    ///\param value A default value for the option
150
    ///\param value A default value for the option.
151 151
    ///\param obl Indicate if the option is mandatory.
152
    ////\note A mandatory bool obtion is of very little use.)
152
    ///\note A mandatory bool obtion is of very little use.
153 153
    ArgParser &boolOption(const std::string &name,
... ...
@@ -160,3 +160,3 @@
160 160
    ///\param help A help string.
161
    ///\param value A default value for the option
161
    ///\param value A default value for the option.
162 162
    ///\param obl Indicate if the option is mandatory.
... ...
@@ -198,3 +198,3 @@
198 198
    ///\retval ref The value of the argument will be written to this variable.
199
    ////\note A mandatory bool obtion is of very little use.)
199
    ///\note A mandatory bool obtion is of very little use.
200 200
    ArgParser &refOption(const std::string &name,
... ...
@@ -207,4 +207,4 @@
207 207
    ///\param help A help string.
208
    ///\param obl Indicate if the option is mandatory.
208 209
    ///\retval ref The value of the argument will be written to this variable.
209
    ///\param obl Indicate if the option is mandatory.
210 210
    ArgParser &refOption(const std::string &name,
... ...
@@ -313,5 +313,5 @@
313 313
	Opts::iterator i = _parser._opts.find(_name);
314
	LEMON_ASSERT(i==_parser._opts.end(),
314
	LEMON_ASSERT(i!=_parser._opts.end(),
315 315
		     std::string()+"Unkown option: '"+_name+"'");
316
	LEMON_ASSERT(i->second.type!=ArgParser::BOOL,
316
	LEMON_ASSERT(i->second.type==ArgParser::BOOL,
317 317
		     std::string()+"'"+_name+"' is a bool option");
... ...
@@ -323,5 +323,5 @@
323 323
	Opts::iterator i = _parser._opts.find(_name);
324
	LEMON_ASSERT(i==_parser._opts.end(),
324
	LEMON_ASSERT(i!=_parser._opts.end(),
325 325
		     std::string()+"Unkown option: '"+_name+"'");
326
	LEMON_ASSERT(i->second.type!=ArgParser::STRING,
326
	LEMON_ASSERT(i->second.type==ArgParser::STRING,
327 327
		     std::string()+"'"+_name+"' is a string option");
... ...
@@ -333,6 +333,6 @@
333 333
	Opts::iterator i = _parser._opts.find(_name);
334
	LEMON_ASSERT(i==_parser._opts.end(),
334
	LEMON_ASSERT(i!=_parser._opts.end(),
335 335
		     std::string()+"Unkown option: '"+_name+"'");
336
	LEMON_ASSERT(i->second.type!=ArgParser::DOUBLE &&
337
		     i->second.type!=ArgParser::INTEGER,
336
	LEMON_ASSERT(i->second.type==ArgParser::DOUBLE ||
337
		     i->second.type==ArgParser::INTEGER,
338 338
		     std::string()+"'"+_name+"' is a floating point option");
... ...
@@ -345,5 +345,5 @@
345 345
	Opts::iterator i = _parser._opts.find(_name);
346
	LEMON_ASSERT(i==_parser._opts.end(),
346
	LEMON_ASSERT(i!=_parser._opts.end(),
347 347
		     std::string()+"Unkown option: '"+_name+"'");
348
	LEMON_ASSERT(i->second.type!=ArgParser::INTEGER,
348
	LEMON_ASSERT(i->second.type==ArgParser::INTEGER,
349 349
		     std::string()+"'"+_name+"' is an integer option");
0 comments (0 inline)