catchorg / Clara

A simple to use, composable, command line parser for C++ 11 and beyond
Boost Software License 1.0
648 stars 67 forks source link

Issue #93: Fix required option #94

Open bigwater opened 5 years ago

bigwater commented 5 years ago

A quick fix for the ``required" option.

When the option is not provided in the command line, it raises an error. The related unit tests are also added.

codecov[bot] commented 5 years ago

Codecov Report

Merging #94 into master will increase coverage by 0.23%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
+ Coverage   94.85%   95.09%   +0.23%     
==========================================
  Files           2        2              
  Lines         680      713      +33     
==========================================
+ Hits          645      678      +33     
  Misses         35       35
Impacted Files Coverage Δ
include/clara.hpp 93.72% <100%> (+0.41%) :arrow_up:

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 e306107...f28af26. Read the comment docs.