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

Method addCommand

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

Add a command object.

(String name, Object object)

Source from the content-addressed store, hash-verified

1455 * Add a command object.
1456 */
1457 public void addCommand(String name, Object object) {
1458 addCommand(name, object, new String[0]);
1459 }
1460
1461 public void addCommand(Object object) {
1462 Parameters p = object.getClass().getAnnotation(Parameters.class);

Callers 15

verifyCommandOrderingMethod · 0.95
dynamicParametersMethod · 0.95
commandKeyMethod · 0.95
noDashCommandMethod · 0.95
parseArgsMethod · 0.95
testIssue244Method · 0.95
fMethod · 0.95
usageWithEmptyLineMethod · 0.95
usageWithSubCommandsMethod · 0.95

Calls 6

addObjectMethod · 0.95
createDescriptionsMethod · 0.95
setProgramNameMethod · 0.95
equalsMethod · 0.95
getMethod · 0.80
getNameMethod · 0.65

Tested by 15

verifyCommandOrderingMethod · 0.76
dynamicParametersMethod · 0.76
commandKeyMethod · 0.76
noDashCommandMethod · 0.76
parseArgsMethod · 0.76
testIssue244Method · 0.76
fMethod · 0.76
usageWithEmptyLineMethod · 0.76
usageWithSubCommandsMethod · 0.76