7 using namespace command;
10 #define VALUE "1234567890"
12 #define OPTION NAME "=" VALUE
14 typedef int OptionType;
18 void _function(OptionType value) {
23 Option<OptionType> option(NAME, "Option as int", _function);
25 if (option.understand(OPTION)) {
29 cout << option.describe() << " do not understand int values\n";
33 if (test == std::stoi(VALUE)) {
34 cout << option.describe() << " handles int values\n";
38 cout << option.describe() << " do not handle int values\n";