mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
fix(command): deprecate slash prefixed command line arguments
This commit is contained in:
parent
08a8a33518
commit
88dd7cffd1
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue