template <typename T> T getAs (const std::string name) const get value of option by name without leading dash. Either short or long option name can be used. Example: p.getAs<int>(“longopt”);