@Test public void testParseToConfiguration() throws ParseException, InjectionException { final String expected = "hello"; final String[] args = {"-" + NamedParameters.StringShortNameDefault.SHORT_NAME, expected}; final Configuration configuration = CommandLine .parseToConfiguration(args, NamedParameters.StringShortNameDefault.class); final String injected = Tang.Factory.getTang().newInjector(configuration) .getNamedInstance(NamedParameters.StringShortNameDefault.class); Assert.assertEquals(expected, injected); }
public static Configuration parseToConfiguration(final String[] args, final Class<? extends Name<?>>... argClasses) throws ParseException { return parseToConfigurationBuilder(args, argClasses).build(); }
CommandLine { public static Configuration parseToConfiguration(final String[] args, final Class<? extends Name<?>>... argClasses) throws ParseException { return parseToConfigurationBuilder(args, argClasses).build(); } }
CommandLine { public static Configuration parseToConfiguration(final String[] args, final Class<? extends Name<?>>... argClasses) throws ParseException { return parseToConfigurationBuilder(args, argClasses).build(); } CommandLine();  CommandLine(final ConfigurationBuilder conf); }
CommandLine { public static Configuration parseToConfiguration(final String[] args, final Class<? extends Name<?>>... argClasses) throws ParseException { return parseToConfigurationBuilder(args, argClasses).build(); } CommandLine();  CommandLine(final ConfigurationBuilder conf); ConfigurationBuilder getBuilder(); CommandLine registerShortNameOfClass(final String s); CommandLine registerShortNameOfClass(
      final Class<? extends Name<?>> c); CommandLine addCommandLineOption(final Option option, final CommandLineCallback cb); @SafeVarargs final CommandLine processCommandLine(
      final String[] args, final Class<? extends Name<?>>... argClasses); static Configuration parseToConfiguration(final String[] args,
                                                   final Class<? extends Name<?>>... argClasses); @SuppressWarnings("checkstyle:avoidhidingcauseexception") static ConfigurationBuilder parseToConfigurationBuilder(final String[] args,
                                                                 final Class<? extends Name<?>>... argClasses); }
CommandLine { public static Configuration parseToConfiguration(final String[] args, final Class<? extends Name<?>>... argClasses) throws ParseException { return parseToConfigurationBuilder(args, argClasses).build(); } CommandLine();  CommandLine(final ConfigurationBuilder conf); ConfigurationBuilder getBuilder(); CommandLine registerShortNameOfClass(final String s); CommandLine registerShortNameOfClass(
      final Class<? extends Name<?>> c); CommandLine addCommandLineOption(final Option option, final CommandLineCallback cb); @SafeVarargs final CommandLine processCommandLine(
      final String[] args, final Class<? extends Name<?>>... argClasses); static Configuration parseToConfiguration(final String[] args,
                                                   final Class<? extends Name<?>>... argClasses); @SuppressWarnings("checkstyle:avoidhidingcauseexception") static ConfigurationBuilder parseToConfigurationBuilder(final String[] args,
                                                                 final Class<? extends Name<?>>... argClasses);  }