aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/cmd_line.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/winapi/cmd_line.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/winapi/cmd_line.hpp b/include/winapi/cmd_line.hpp
index ac88286..60bc56a 100644
--- a/include/winapi/cmd_line.hpp
+++ b/include/winapi/cmd_line.hpp
@@ -21,6 +21,12 @@ public:
CommandLine() = default;
+ CommandLine(const std::string& argv0, const std::vector<std::string>& args = {})
+ : argv0(argv0), args(args) {}
+
+ CommandLine(std::string&& argv0, std::vector<std::string>&& args = {})
+ : argv0(std::move(argv0)), args(std::move(args)) {}
+
bool has_argv0() const { return !argv0.empty(); }
std::string get_argv0() const { return argv0; }
@@ -50,9 +56,6 @@ private:
CommandLine(std::vector<std::string>&& args) : args(std::move(args)) {}
- CommandLine(std::string&& argv0, std::vector<std::string>&& args = {})
- : argv0(std::move(argv0)), args(std::move(args)) {}
-
const std::string argv0;
const std::vector<std::string> args;
};