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

Filedir checks #341

Merged
merged 8 commits into from
Nov 25, 2019
Merged

Filedir checks #341

merged 8 commits into from
Nov 25, 2019

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Nov 10, 2019

This PR stems from an issue in our application about using an optional default ini file. That is sometimes present, but often not. In the current code this generated an internal exception that was caught but would clutter up trapping exceptions from other parts of the program and made debugging difficult in some cases.

This PR splits out the detection of the file and directory types into a separate function and uses that in a couple locations instead of using the Validators. This prevents any exception from being thrown for non-required config files.

Since I was working with that code anyway, I added the detection for C++17 and filesystem and the 64 bit operations on visual studio which should address #312.

use of <filesystem> can be turned off by defining CLI11_HAS_FILESYSTEM to 0

@codecov
Copy link

codecov bot commented Nov 11, 2019

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #341   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          12     12           
  Lines        3331   3337    +6     
=====================================
+ Hits         3331   3337    +6
Impacted Files Coverage Δ
include/CLI/App.hpp 100% <100%> (ø) ⬆️
include/CLI/Validators.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 418b717...dab8ddb. Read the comment docs.

@henryiii henryiii merged commit a8d597d into CLIUtils:master Nov 25, 2019
@henryiii henryiii deleted the filedir_checks branch November 25, 2019 19:50
@henryiii henryiii added this to the v1.9 milestone Dec 31, 2019
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.

None yet

2 participants