/** * Injects the options of {@code args} and default values into {@code object} using the * Option annotation of fields of {@code <T>}. * * @param args Arguments providing option values. * @param object Target object to inject options into. * @param <T> Type of the target object. * @return Returns {@code object}. */ public static <T> T inject(Args args, T object) { return new OptionParser(args).inject(object); }