Skip to content

default_val option call - #387

Merged
henryiii merged 4 commits into
CLIUtils:masterfrom
phlptp:default_val_fix
Jan 2, 2020
Merged

henryiii merged 4 commits into
CLIUtils:masterfrom
phlptp:default_val_fix

Conversation

@phlptp

@phlptp phlptp commented Jan 1, 2020

Copy link
Copy Markdown
Collaborator

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

phlptp commented Jan 1, 2020 •

Copy link
Copy Markdown
Collaborator Author
  • Need to update readme yet before merging.
  • Verify coverage

@codecov

codecov Bot commented Jan 1, 2020 •

Copy link
Copy Markdown

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

@henryiii henryiii left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good!

Comment thread README.md 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