Provide more complex example and describe more usage.
[command.git] / tests / option / handles_string_value.cpp
index 574b5c5adfe7ed5d8a4a6d44cab6c508ee9b8aa2..7f9099d42e8936d6c9eec353579d168600d24e66 100644 (file)
@@ -9,7 +9,7 @@ using namespace command;
 #define NAME "test"
 #define VALUE "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
 
-#define OPTION NAME"="VALUE
+#define OPTION NAME "=" VALUE
 
 typedef std::string OptionType;
 
@@ -26,14 +26,14 @@ int main() {
         option.handle();
     }
     else {
-        cout << "Option class do not understand string values\n";
+        cout << option.describe() << " do not understand string values\n";
         return 1;
     }
 
     int cmp = strcmp(test.c_str(), VALUE);
 
     if (cmp == 0) {
-        cout << "Option class handles string values\n";
+        cout << option.describe() << " handles string values\n";
         return 0;
     }