code: public static <T> T populateCommand(T command, String... args) {
          CommandLine cli = toCommandLine(command, new DefaultFactory());
          cli.parse(args);
          return command;
      }
docs: <p>
  Convenience method that initializes the specified annotated object from the specified command line arguments.
  </p><p>
  This is equivalent to
  </p><pre>
  CommandLine cli = new CommandLine(command);
  cli.parse(args);
  return command;
  </pre>
  
  @param command the object to initialize. This object contains fields annotated with
  {@code @Option} or {@code @Parameters}.
  @param args the command line arguments to parse
  @param <T> the type of the annotated object
  @return the specified annotated object
  @throws InitializationException if the specified command object does not have a {@link Command}, {@link Option} or {@link Parameters} annotation
  @throws ParameterException if the specified command line arguments are invalid
  @since 0.9.7