@Test public void testParse() throws Exception { String[] argv = { "-config", "bootstrap.properties" }; CommandLineArgs args = CommandLineArgs.parse(argv); assertFalse(args.hasArgument("-c")); assertTrue(args.hasArgument("-c", "-config")); assertEquals("bootstrap.properties", args.getArgument("-c", "-config")); }
public static CommandLineArgs parse(String[] argv) throws Exception { CommandLineArgs a = new DefaultImpl(argv); return a; }
CommandLineArgs { public static CommandLineArgs parse(String[] argv) throws Exception { CommandLineArgs a = new DefaultImpl(argv); return a; } }
CommandLineArgs { public static CommandLineArgs parse(String[] argv) throws Exception { CommandLineArgs a = new DefaultImpl(argv); return a; } protected  CommandLineArgs(String[] args); protected  CommandLineArgs(Map<String, String> dashedArgs, List normalArgs); }
CommandLineArgs { public static CommandLineArgs parse(String[] argv) throws Exception { CommandLineArgs a = new DefaultImpl(argv); return a; } protected  CommandLineArgs(String[] args); protected  CommandLineArgs(Map<String, String> dashedArgs, List normalArgs); boolean hasArgument(String... paramList); String getArgument(String... paramList); String[] render(); CommandLineArgs remove(String... args); CommandLineArgs convertToNormal(String... args); static CommandLineArgs parse(String[] argv); }
CommandLineArgs { public static CommandLineArgs parse(String[] argv) throws Exception { CommandLineArgs a = new DefaultImpl(argv); return a; } protected  CommandLineArgs(String[] args); protected  CommandLineArgs(Map<String, String> dashedArgs, List normalArgs); boolean hasArgument(String... paramList); String getArgument(String... paramList); String[] render(); CommandLineArgs remove(String... args); CommandLineArgs convertToNormal(String... args); static CommandLineArgs parse(String[] argv);  }