dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
command.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Option parameter. Added new example.
[command.git]
/
include
/
option.h
diff --git
a/include/option.h
b/include/option.h
index fe0fc857ddf54cc6ee745cd6506174b112dbd027..fef4e31376287290af7a988f3fdb279efa04a151 100644
(file)
--- a/
include/option.h
+++ b/
include/option.h
@@
-15,7
+15,7
@@
namespace command {
*/
template<typename OptionType>
class Option
*/
template<typename OptionType>
class Option
- : Argument<OptionType> {
+ :
public
Argument<OptionType> {
public:
// typedef typename Argument<OptionType, Lambda>::FunctionType FunctionType;
protected:
public:
// typedef typename Argument<OptionType, Lambda>::FunctionType FunctionType;
protected:
@@
-38,6
+38,8
@@
namespace command {
virtual ~Option() { }
virtual void handle() {
virtual ~Option() { }
virtual void handle() {
+ std::cout << "Option::handle()" << std::endl;
+ this->call(std::string("O"));
}
};
}
}
};
}