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

Wrong display for ArgumentRequiresOtherArgumentsCertification #85

Open
hypomaniak opened this issue Oct 26, 2023 · 0 comments
Open

Wrong display for ArgumentRequiresOtherArgumentsCertification #85

hypomaniak opened this issue Oct 26, 2023 · 0 comments

Comments

@hypomaniak
Copy link

Hello

I am trying to use the ArgumentRequiresOtherArgumentsCertification attribute and noticed this:

If the parameters are not validated, the exception message is shown correctly:

Argument: p requires the following arguments: i.

When calling ShowUsage(), the result is different

Argument combinations remarks:
Argument: requires the following arguments: i.

The name of the argument is missing.

I think I found where the fault lies in class ArgumentRequiresOtherArgumentsCertification, but I'm not sure:
private string DefaultUsageDescription() { return string.Format(Messages.EXC_GROUP_ARGUMENTS_REQUIRED_BY_ANOTHER_ARGUMENT, _mainArgument, _argumentsRequiredForMainArgumentString); }

shouldn't it be like this?

private string DefaultUsageDescription() { return string.Format(Messages.EXC_GROUP_ARGUMENTS_REQUIRED_BY_ANOTHER_ARGUMENT, _mainArgumentString, _argumentsRequiredForMainArgumentString); }

Sorry if I don't use the correct way to report this, I am not used to report bugs on GitHub

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

1 participant