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)
| 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> |