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

How to pass parameter name with suffix number? #127

Open
sulmar opened this issue Feb 20, 2024 · 1 comment
Open

How to pass parameter name with suffix number? #127

sulmar opened this issue Feb 20, 2024 · 1 comment

Comments

@sulmar
Copy link

sulmar commented Feb 20, 2024

How to pass parameter name in format {char}{number}?

Code example:

CoconaApp.Run(([Option("L1")] string line1, [Option("L2")] string line2) =>
{
    Console.WriteLine($"Hello {line1}\n{line2}");
});
--L1 Hello --L2 World

I have got error:
Error: Unknown option 'L1'

@mayuki mayuki added the bug Something isn't working label Mar 7, 2024
@mayuki
Copy link
Owner

mayuki commented Mar 7, 2024

This is not because of the numbers. The error is due to the option name is case-sensitive.

@mayuki mayuki removed the bug Something isn't working label Mar 7, 2024
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

No branches or pull requests

2 participants