Skip to content

Fix IsOptional method for arguments #1862

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

Merged
merged 5 commits into from
Oct 4, 2022
Merged

Fix IsOptional method for arguments #1862

merged 5 commits into from
Oct 4, 2022

Conversation

iBicha
Copy link
Contributor

@iBicha iBicha commented Sep 30, 2022

Fixes #1748

This bug is causing confusion on what it optional and what it not. Reusing args between commands has nothing to do with them being optional or required.

@iBicha
Copy link
Contributor Author

iBicha commented Oct 3, 2022

cc @jonsequitur

@jonsequitur
Copy link
Contributor

Can you add a test that demonstrates the behavior?

@iBicha
Copy link
Contributor Author

iBicha commented Oct 4, 2022

Can you add a test that demonstrates the behavior?

Mostly covered by other tests, but I added a case where the arg is shared, it should not be optional.

@jonsequitur jonsequitur merged commit c776cd4 into dotnet:main Oct 4, 2022
@iBicha iBicha deleted the bug/fix-help-builder branch October 4, 2022 17:16
vlada-shubina added a commit to dotnet/sdk that referenced this pull request Oct 7, 2022
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 this pull request may close these issues.

[BUG?] Reused arguments are considered optional
2 participants