6 using namespace command;
8 #define VALUE "-567890.1234"
10 typedef float ArgumentType;
14 void _function(ArgumentType value) {
19 Argument<ArgumentType> argument("Argument as negative float", _function);
21 if (argument.understand(VALUE)) {
25 cout << argument.describe() << " do not understand " << VALUE " value\n";
29 if (test == std::stof(VALUE)) {
30 cout << argument.describe() << " handles negative float values\n";
34 cout << argument.describe() << " do not handle negative float values\n";