diff --git a/Source/Common/ArgumentLoader.cpp b/Source/Common/ArgumentLoader.cpp index 22be3e89a..894bc1984 100644 --- a/Source/Common/ArgumentLoader.cpp +++ b/Source/Common/ArgumentLoader.cpp @@ -281,6 +281,14 @@ namespace FEX::ArgLoader { ProgramArguments = Parser.parsed_args(); } + void LoadWithoutArguments(int _argc, char **_argv) { + optparse::OptionParser Parser{}; + optparse::Values Options = Parser.parse_args(_argc, _argv); + + RemainingArgs = Parser.args(); + ProgramArguments = Parser.parsed_args(); + } + std::vector Get() { return RemainingArgs; } diff --git a/Source/Common/ArgumentLoader.h b/Source/Common/ArgumentLoader.h index 6770e9361..2463abc23 100644 --- a/Source/Common/ArgumentLoader.h +++ b/Source/Common/ArgumentLoader.h @@ -20,6 +20,7 @@ namespace FEX::ArgLoader { char **argv; }; + void LoadWithoutArguments(int _argc, char **_argv); std::vector Get(); std::vector GetParsedArgs();