Add Grouped behaviour.
[command.git] / include / required.h
index a4e062201430dec369dc3b49bbc96273c8c12014..f88d2ae15051c3a9bf71949ba7ba90b7c661dc9d 100644 (file)
@@ -69,8 +69,17 @@ namespace command {
          */
         virtual bool isUsed() {
             return parameter->isUsed();
-        };
+        }
+
+        /**
+         * Wrapper method around passed Parameter::valuePosition().
+         *
+         * \inheritdoc
+         */
+        virtual unsigned int valuePosition(const std::string & value) {
+            return parameter->valuePosition(value);
+        }
     };
 }
 
-#endif /* __COMMAND_PARAMETER_H */
+#endif /* __COMMAND_REQUIRED_H */