| 9 | #include <filesystem> |
| 10 | |
| 11 | static std::string rm_leading_dashes(const std::string & str) { |
| 12 | size_t pos = 0; |
| 13 | while (pos < str.size() && str[pos] == '-') { |
| 14 | ++pos; |
| 15 | } |
| 16 | return str.substr(pos); |
| 17 | } |
| 18 | |
| 19 | // only allow a subset of args for remote presets for security reasons |
| 20 | // do not add more args unless absolutely necessary |
no test coverage detected