#ifndef MSP_CORE_GETOPT_H_
#define MSP_CORE_GETOPT_H_
-#include <list>
#include <sstream>
#include <string>
+#include <vector>
#include "error.h"
namespace Msp {
OptBase(char s, const std::string &l, ArgType a): shrt(s), lng(l), arg_type(a), seen_count(0) { }
};
- const std::list<std::string> &get_args() const { return args; }
+ const std::vector<std::string> &get_args() const { return args; }
template<typename T>
OptBase &add_option(char s, const std::string &l, T &d, ArgType a=NO_ARG)
};
std::list<OptBase *> opts;
- std::list<std::string> args;
+ std::vector<std::string> args;
OptBase &get_option(char);
OptBase &get_option(const std::string &);