aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/cmd_line.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/winapi/cmd_line.hpp')
-rw-r--r--include/winapi/cmd_line.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/winapi/cmd_line.hpp b/include/winapi/cmd_line.hpp
index 176cf3d..c6e8c65 100644
--- a/include/winapi/cmd_line.hpp
+++ b/include/winapi/cmd_line.hpp
@@ -29,6 +29,10 @@ public:
CommandLine(std::string&& argv0, std::vector<std::string>&& args = {})
: argv0(std::move(argv0)), args(std::move(args)) {}
+ CommandLine(const std::vector<std::string>& argv);
+
+ CommandLine(std::vector<std::string>&& argv);
+
static std::string escape(const std::string&);
static std::string escape_cmd(const std::string&);
@@ -43,6 +47,8 @@ public:
const std::vector<std::string>& get_args() const { return args; }
+ std::vector<std::string> get_argv() const;
+
private:
static BOOST_CONSTEXPR char token_sep() { return ' '; }
@@ -50,6 +56,8 @@ private:
std::vector<std::string> escape_args() const;
+ std::vector<std::string> escape_argv() const;
+
std::string argv0;
std::vector<std::string> args;
};