Closed PonchoPowers closed 4 months ago
System.CommandLine already does support the Posix --
end-of-options delimiter. Anything after the --
will be treated as ordinary argument values.
Yup sorry can see where it is defined now...
CliToken DoubleDash() => new("--", CliTokenType.DoubleDash, default, i);
Support needs to be added for an option terminator to allow common *nix commands to be parsed correctly.
The following is an example of calling the node command in Windows.
node -h
The snippet is cut short, to highlight the use of "--".
The following command shows why this is important...
node --check -- --loader
The node command would perform a syntax check on the --loader file without executing it.
Such an implementation is common and widely supported in *nix environments, yet some node commands can't correctly be parsed with the current API.