Parser fully finished and functional, posix compliant and tested - all green

This commit is contained in:
2026-07-24 15:11:44 +02:00
parent 355a8a4707
commit b63bae54aa
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -123,6 +123,10 @@ export function parseCommand(input: string): ParsedCommand {
flags.push(token.slice(2));
continue;
} else if (token.startsWith("-")) {
if (token.includes("=")) {
flags.push(token.slice(1));
continue;
}
for (const char of token.slice(1)) {
flags.push(char);
}