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