Constructor for arguments with default value. \param longname Name of argument specified on command line with "--" prefix. \param shortname Optional name of argument specified on command line with "-" prefix. \param description Argument description. \param variable Variable to which the argument value(s) should be bound. \param def Default value.
| 729 | \param def Default value. |
| 730 | */ |
| 731 | VArg(const std::string& longname, const std::string& shortname, |
| 732 | const std::string& description, std::vector<T>& variable, |
| 733 | std::vector<T> def) : |
| 734 | BaseVArg(longname, shortname, description), m_var(variable), |
| 735 | m_defaultVal(def) |
| 736 | { |
| 737 | m_var = def; |
| 738 | m_defaultProvided = true; |
| 739 | } |
| 740 | |
| 741 | /** |
| 742 | Constructor for arguments without default value. |