Add Grouped behaviour.
[command.git] / include / argument.h
index a32cf82064893f9f78677aea1a9e3c4bb3d4a3f7..81a7cd4186e8c4be1c755b74d42829ab7e0fb25b 100644 (file)
@@ -67,7 +67,7 @@ namespace command {
         virtual bool understand(const std::string & argv) {
             std::stringstream ss;
 
-            ss << argv;
+            ss << std::fixed << argv;
             ss >> value;
 
             if (!ss.fail()) {
@@ -76,6 +76,13 @@ namespace command {
 
             return false;
         }
+
+        /**
+         * \inheritdoc
+         */
+        virtual unsigned int valuePosition(const std::string & ) {
+            return 0;
+        }
     };
 }