Skip to content

Commit

Permalink
0.2.7: implement program options (arguments like --silent)
Browse files Browse the repository at this point in the history
  • Loading branch information
nixxoq committed Sep 23, 2023
1 parent aaa62e5 commit d0c60da
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Windows Product Key Switcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,9 @@ int main(int argc, char *argv[]) {
std::stringstream ss;
ss << "powershell -Command \"Start-Process -filepath '" << buffer;

// Проверяем наличие аргументов
if (argc > 1) {
ss << "' -ArgumentList ";

// Формируем строку с аргументами командной строки
std::string arguments;
for (int i = 1; i < argc; ++i) {
arguments += " \"" + std::string(argv[i]) + "\"";
Expand Down

0 comments on commit d0c60da

Please sign in to comment.