Skip to content

Conversation

@AlexGhiondea
Copy link
Owner

Fixes #55

This ensures that when the help is requested we don't return 'true' and give back a null options object.
With this approach we are going to throw a new exception HelpRequestedException for the case when we tried to parse the arguments and they turned out to be a help request.
@codecov
Copy link

codecov bot commented Mar 9, 2020

Codecov Report

Merging #56 into master will increase coverage by 0.81%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
+ Coverage   90.97%   91.79%   +0.81%     
==========================================
  Files          31       32       +1     
  Lines         532      536       +4     
  Branches       99       99              
==========================================
+ Hits          484      492       +8     
  Misses         32       32              
+ Partials       16       12       -4
Impacted Files Coverage Δ
src/HelpRequestedException.cs 100% <100%> (ø)
src/Parser.cs 100% <100%> (ø) ⬆️
src/Help/HelpGenerator.cs 92.13% <0%> (+1.12%) ⬆️
src/Parser.Internal.cs 100% <0%> (+3.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ee1b60...49193c7. Read the comment docs.

@AlexGhiondea AlexGhiondea merged commit d0c4b99 into master Mar 9, 2020
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.

TryParse when '--help' is passed in returns true

2 participants