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

Not required with default stdbehavior #270

Closed

Conversation

ymenager
Copy link

As discussed in #261 , this makes not required with default value the standard behavior

… same, all features are options and must be enabled explicitely):

- bugfix: Default values couldn't be read from non-public fields (was missing setAccessible())
- mask default value: This allows to specify a mask string in @options that will be displayed instead of any existing default value (will not be displayed if no default value exists)
- notRequiredWithDefault in @command allows a default value in a required field to become non-required
- refreshDefaultValues() added to CommandLine

Unit tests for all features included
…(getDefaultValue(scope, field)); can go back to being in it's original location
@codecov-io
Copy link

Codecov Report

Merging #270 into master will decrease coverage by 0.17%.
The diff coverage is 78.57%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #270      +/-   ##
============================================
- Coverage     90.21%   90.03%   -0.18%     
- Complexity      165      172       +7     
============================================
  Files             4        4              
  Lines          2350     2389      +39     
  Branches        591      598       +7     
============================================
+ Hits           2120     2151      +31     
- Misses          102      107       +5     
- Partials        128      131       +3
Impacted Files Coverage Δ Complexity Δ
src/main/java/picocli/CommandLine.java 89.84% <78.57%> (-0.2%) 90 <7> (+7)

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 8ac51a2...b3d7c8d. Read the comment docs.

@remkop
Copy link
Owner

remkop commented Apr 3, 2018

Implemented, see comment on #261

@remkop remkop closed this Apr 3, 2018
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.

3 participants