dotnet / dotnet/command-line-api

HasOption alternative When migrating to 2.0 beta5

Open
#2,598 8 comments 0 reactions 1 assignee Claimed by @adamsitnik View on GitHub
Area-API
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

When migrating to 2.0 beta 5, the `ParseResult.HasOption` is not there any more, and seems not mentioned in the migration guide, is there alternative for it?

I use it to see whether the user has that option input

https://learn.microsoft.com/en-us/dotnet/standard/commandline/migration-guide-2.0.0-beta5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.