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

Rename Option.IsGlobal to AppliesToSelfAndChildren, make it public #2060

Merged
merged 4 commits into from
Feb 18, 2023

Conversation

adamsitnik
Copy link
Member

fixes #2055

Note from #2055: "This might be not the final name, we might rename it once the API gets approved by .NET Team API Review Board (.NET 8 Preview 3-4 timeframe)"

@@ -495,7 +495,11 @@ public async Task A_custom_validator_added_to_a_global_option_is_checked(string
{
var handlerWasCalled = false;

var globalOption = new Option<int>("--value");
var globalOption = new Option<int>("--value")
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to rename this local since we are removing the global concept?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking about it, but I was unable to come up with a better name. appliesToSelfAndChildrenOption? inheritableOption?

src/System.CommandLine/Option.cs Outdated Show resolved Hide resolved
Co-authored-by: Kevin B <Keboo@users.noreply.github.com>
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.

Rename IsGlobal to AppliesToSelfAndChildren and expose it
2 participants