Codechange: replace char* in GetOptData with std::string_view

This commit is contained in:
Rubidium
2025-04-30 22:19:11 +02:00
committed by rubidium42
parent c1a287ad17
commit fbe80f31fe
9 changed files with 58 additions and 57 deletions
+3 -1
View File
@@ -322,7 +322,9 @@ int CDECL main(int argc, char *argv[])
std::filesystem::path src_dir(".");
std::filesystem::path dest_dir;
GetOptData mgo(std::span(argv + 1, argc - 1), _opts);
std::vector<std::string_view> params;
for (int i = 1; i < argc; ++i) params.emplace_back(argv[i]);
GetOptData mgo(params, _opts);
for (;;) {
int i = mgo.GetOpt();
if (i == -1) break;