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 negative int", _function);
25 if (option.understand(OPTION)) {
29 cout << option.describe() << " do not understand " << VALUE << " value\n";
33 if (test == std::stoi(VALUE)) {
34 cout << option.describe() << " handles negative int values\n";
38 cout << option.describe() << " do not handle negative int values\n";