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

fix(Mandatory args): list missing cases #236

Merged
merged 18 commits into from
Mar 28, 2024

Conversation

fpellet
Copy link
Contributor

@fpellet fpellet commented Mar 26, 2024

A regression has occurred in #127

Previously, if a case was missing, help was displayed for the subcommand and not for the main command. This was the same behaviour as when there was an unknown case.
This PR corrects this to restore the old behaviour.

At the same time, the error message when a case is missing has been improved. It used to display only the first missing case.
Now it displays all the missing cases.

@bartelink bartelink changed the title Fix error message if missing mandatory case fix(Mandatory args): list missing cases Mar 27, 2024
Copy link
Member

@bartelink bartelink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for noticing and fixing - can you also add a mention to the release notes please (call it 6.2.3)

src/Argu/UnionArgInfo.fs Outdated Show resolved Hide resolved
tests/Argu.Tests/Tests.fs Outdated Show resolved Hide resolved
tests/Argu.Tests/Tests.fs Outdated Show resolved Hide resolved
tests/Argu.Tests/Tests.fs Outdated Show resolved Hide resolved
tests/Argu.Tests/Tests.fs Outdated Show resolved Hide resolved
tests/Argu.Tests/Tests.fs Outdated Show resolved Hide resolved
src/Argu/Parsers/Cli.fs Outdated Show resolved Hide resolved
fpellet and others added 6 commits March 27, 2024 10:23
Co-authored-by: Ruben Bartelink <ruben@bartelink.com>
Co-authored-by: Ruben Bartelink <ruben@bartelink.com>
Co-authored-by: Ruben Bartelink <ruben@bartelink.com>
@fpellet fpellet closed this Mar 27, 2024
@fpellet fpellet reopened this Mar 27, 2024
@fpellet
Copy link
Contributor Author

fpellet commented Mar 27, 2024

Thank you for noticing and fixing - can you also add a mention to the release notes please (call it 6.2.3)

I have update release note. Minor version because it changes the text of the error message, and display all missing cases

RELEASE_NOTES.md Outdated Show resolved Hide resolved
RELEASE_NOTES.md Outdated Show resolved Hide resolved
RELEASE_NOTES.md Outdated Show resolved Hide resolved
fpellet and others added 4 commits March 27, 2024 17:18
Co-authored-by: Ruben Bartelink <ruben@bartelink.com>
Co-authored-by: Ruben Bartelink <ruben@bartelink.com>
@bartelink
Copy link
Member

Thanks for all the follow-ups and for bearing with all my pedantry.
I think there's one nit outstanding, but if you don't get to it in the next bit I'll merge and release later on.

@bartelink bartelink merged commit e3bc012 into fsprojects:master Mar 28, 2024
4 checks passed
@bartelink
Copy link
Member

Released; thanks for another excellent contribution!

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.

2 participants