MCPcopy
hub / github.com/remkop/picocli / populateCommand

Method populateCommand

src/main/java/picocli/CommandLine.java:1474–1478  ·  view source on GitHub ↗

Convenience method that initializes the specified annotated object from the specified command line arguments. This is equivalent to new CommandLine(command).parseArgs(args); return command; All this method does is parse the arguments and populate the annotated fields

(T command, String... args)

Source from the content-addressed store, hash-verified

1472 * @since 0.9.7
1473 */
1474 public static <T> T populateCommand(T command, String... args) {
1475 CommandLine cli = toCommandLine(command, new DefaultFactory());
1476 cli.parse(args);
1477 return command;
1478 }
1479
1480 /**
1481 * <p>

Calls 2

toCommandLineMethod · 0.95
parseMethod · 0.95