Parser fully finished and functional, posix compliant and tested - all green
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user