kotlin-argparser
kotlin-argparser copied to clipboard
calling default lambda only once per delegate
When using a missing argument multiple times, the lambda that provides a default value was called at every use of the delegate. In some cases, like asking the user to input the value on command line, this behaviour can be undesirable.
Codecov Report
Merging #69 into master will increase coverage by
0.03%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #69 +/- ##
============================================
+ Coverage 84.9% 84.94% +0.03%
Complexity 138 138
============================================
Files 11 11
Lines 424 425 +1
Branches 84 84
============================================
+ Hits 360 361 +1
Misses 27 27
Partials 37 37
Impacted Files | Coverage Δ | Complexity Δ | |
---|---|---|---|
...c/main/kotlin/com/xenomachina/argparser/Default.kt | 84.21% <100%> (+0.87%) |
0 <0> (ø) |
:arrow_down: |
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 263784f...1fb46a4. Read the comment docs.