MCPcopy Create free account
hub / github.com/cbeust/jcommander / parse

Method parse

src/main/java/com/beust/jcommander/JCommander.java:344–351  ·  view source on GitHub ↗

Parse and validate the command line parameters.

(String... args)

Source from the content-addressed store, hash-verified

342 * Parse and validate the command line parameters.
343 */
344 public void parse(String... args) {
345 try {
346 parse(true /* validate */, args);
347 } catch(ParameterException ex) {
348 ex.setJCommander(this);
349 throw ex;
350 }
351 }
352
353 /**
354 * Parse the command line parameters without validating them.

Callers 15

testMainMethod · 0.95
mainMethod · 0.95
repeatedArgsMethod · 0.95
i18n2Method · 0.95
arity1FailMethod · 0.95
arity1Success1Method · 0.95
arity1Success2Method · 0.95
validationShouldWork1Method · 0.95
multipleValidatorsMethod · 0.95

Calls 8

pMethod · 0.95
joinMethod · 0.95
createDescriptionsMethod · 0.95
parseValuesMethod · 0.95
expandArgsMethod · 0.95
validateOptionsMethod · 0.95
setJCommanderMethod · 0.80

Tested by 15

testMainMethod · 0.76
mainMethod · 0.76
repeatedArgsMethod · 0.76
i18n2Method · 0.76
arity1FailMethod · 0.76
arity1Success1Method · 0.76
arity1Success2Method · 0.76
validationShouldWork1Method · 0.76
multipleValidatorsMethod · 0.76