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

default_val option call #387

Merged
merged 4 commits into from
Jan 2, 2020
Merged

default_val option call #387

merged 4 commits into from
Jan 2, 2020

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Jan 1, 2020

Fix potentially improper callback calls for default_val Option function. the update adds a flag variable to control it, makes default_val exception safe and a template to convert from actual value types.

add a variant of is_vector to check for const std::vector as well.
add a few tests for different modes of operation

Addresses #371

…e adds a flag variable to control it, makes default_val exception safe and a template to convert from actual value types.
@phlptp
Copy link
Collaborator Author

phlptp commented Jan 1, 2020

  • Need to update readme yet before merging.
  • Verify coverage

@codecov
Copy link

codecov bot commented Jan 1, 2020

Codecov Report

Merging #387 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #387   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        3552   3565   +13     
=====================================
+ Hits         3552   3565   +13
Impacted Files Coverage Δ
include/CLI/TypeTools.hpp 100% <ø> (ø) ⬆️
include/CLI/Option.hpp 100% <100%> (ø) ⬆️
include/CLI/App.hpp 100% <100%> (ø) ⬆️

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 c67ab9d...681077a. Read the comment docs.

@phlptp phlptp requested a review from henryiii January 1, 2020 16:35
@phlptp phlptp added this to the v1.9 milestone Jan 1, 2020
@phlptp phlptp mentioned this pull request Jan 1, 2020
Copy link
Collaborator

@henryiii henryiii left a comment

Choose a reason for hiding this comment

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

Looks good!

README.md Outdated Show resolved Hide resolved
@henryiii henryiii merged commit 5b17abf into CLIUtils:master Jan 2, 2020
@henryiii henryiii deleted the default_val_fix branch January 2, 2020 22:38
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