From 88dd7cffd1750f96a2f9cd63110bb8fd309e3fdb Mon Sep 17 00:00:00 2001 From: superp00t Date: Mon, 22 Jul 2024 03:33:19 -0400 Subject: [PATCH] fix(command): deprecate slash prefixed command line arguments --- storm/Command.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/storm/Command.cpp b/storm/Command.cpp index b363ada..934db61 100644 --- a/storm/Command.cpp +++ b/storm/Command.cpp @@ -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); }