fix(command): deprecate slash prefixed command line arguments

This commit is contained in:
phaneron 2024-07-22 03:33:19 -04:00
parent 08a8a33518
commit 88dd7cffd1

View file

@ -300,7 +300,11 @@ static int32_t ProcessToken(const char* string, int32_t quoted, PROCESSING* proc
int32_t datachars;
if (SStrChr("-/", string[0]) != nullptr && !quoted) {
// Changed because practically no one uses /forward /slash /prefixed /arguments
// anymore, and passing any string argument that begins with / gets misinterpreted
// Formerly:
// if (SStrChr("-/", string[0]) != nullptr && !quoted) {
if (SStrChr("-", string[0]) != nullptr && !quoted) {
processing->ptr = nullptr;
return ProcessFlags(string + 1, processing, errorcallback);
}