Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add supports for double-dash arguments syntax #161

Closed
filzrev opened this issue Feb 5, 2025 · 1 comment · Fixed by #164
Closed

[Feature Request] Add supports for double-dash arguments syntax #161

filzrev opened this issue Feb 5, 2025 · 1 comment · Fixed by #164

Comments

@filzrev
Copy link
Contributor

filzrev commented Feb 5, 2025

Currently ConsoleAppFramework seems not support -- syntax that described on following URL.
https://learn.microsoft.com/en-us/dotnet/standard/commandline/syntax#the----token

And it seems there are no way to receive extra arguments as command parameters.

On Syntax Parsing Policy and Performance section describes the following statement.

While there are some standards for command-line arguments, such as UNIX tools and POSIX, there is no absolute specification. The Command-line syntax overview for System.CommandLine provides an explanation of the specifications adopted by System.CommandLine. However, ConsoleAppFramework, while referring to these specifications to some extent, does not necessarily aim to fully comply with them.

Adding double-dash( -- ) support against the above policy?

@neuecc
Copy link
Member

neuecc commented Feb 5, 2025

Thank you for your suggestion.
Since it's not too parse-intensive and is a very useful feature (I also frequently use this syntax with dotnet run),
I'd like to think positively about supporting --.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants