namespace command {
/**
* Class responsible for handling commandline arguments.
- * Arguments are required, non-named parameters of program.
- * Accepts
+ * Arguments are non-named parameters of program.
*
* Example:
* ./myprog ARGUMENT
template<typename ArgumentType>
class Argument : public Parameter, public Callable<ArgumentType> {
protected:
- /** Variable indicating if current Argument was already used or not */
- bool used = false;
-
ArgumentType value;
public:
typedef class Argument Type;
* against next value.
*/
virtual bool understand(const std::string & argv) {
- if (!used) {
+ if (!isUsed()) {
std::stringstream ss;
ss << argv;
ss >> value;
if (!ss.fail()) {
- used = true;
+ this->used = true;
return true;
}
}