Home
last modified time | relevance | path

Searched refs:JCommander (Results 1 – 25 of 50) sorted by relevance

12

/external/jcommander/src/test/java/com/beust/jcommander/
DJCommanderTest.java88 new JCommander(args, argv); in simpleArgs()
120 new JCommander(args, argv); in testAlternateNamesForListArguments()
136 JCommander jc = new JCommander(args, argv); in repeatedArgs()
147 new JCommander(args, argv); in requiredFields1Fail()
156 JCommander jc = new JCommander(new Object(), argv); in nonexistentCommandShouldThrow()
166 new JCommander(args, argv); in multipleNames()
184 JCommander jc = new JCommander(i18n, bundle, argv); in i18n1()
206 JCommander jc = new JCommander(i18n, argv); in i18n2()
220 JCommander jCommander = new JCommander(new ArgsMainParameter1()); in noParseConstructor()
233 JCommander jc = new JCommander(new Object[]{argsHelp, new ArgsRequired()}, in usageWithRequiredArgsAndResourceBundle()
[all …]
DFinderTest.java18 JCommander jc = new JCommander(a); in caseInsensitiveOption()
27 JCommander jc = new JCommander(a); in caseInsensitiveCommand()
42 JCommander jc = new JCommander(a); in abbreviatedOptions()
54 JCommander jc = new JCommander(a); in abbreviatedOptionsCaseInsensitive()
70 JCommander jc = new JCommander(a); in ambiguousAbbreviatedOptions()
85 JCommander jc = new JCommander(a); in ambiguousAbbreviatedOptionsCaseInsensitive()
DPositiveIntegerTest.java16 JCommander jc = new JCommander(arg); in validateTest()
28 JCommander jc = new JCommander(arg); in validateTest2()
39 JCommander jc = new JCommander(arg); in validateTest3()
50 JCommander jc = new JCommander(arg); in validateTest4()
62 JCommander jc = new JCommander(arg); in validateTest5()
DParametersDelegateTest.java29 JCommander cmd = new JCommander(p); in delegatingEmptyClassHasNoEffect()
54 JCommander cmd = new JCommander(p); in delegatingSetsFieldsOnBothMainParamsAndTheDelegatedParams()
108 JCommander cmd = new JCommander(p); in combinedAndNestedDelegates()
135 JCommander cmd = new JCommander(); in commandTest()
155 JCommander cmd = new JCommander(); in mainParametersTest()
176 JCommander cmd = new JCommander(p); in nullDelegatesAreProhibited()
195 JCommander cmd = new JCommander(p); in duplicateDelegateThrowDuplicateOptionException()
218 JCommander cmd = new JCommander(); in duplicateMainParametersAreNotAllowed()
DDefaultValueTest.java38 JCommander cmd = new JCommander(opts); in emptyDefaultValueForListParameterStaysEmptyIfNotAssignedOrIsSetOtherwise()
48 JCommander cmd = new JCommander(opts); in defaultValueForListParametersGetsOverwrittenWithSpecifiedValueOrStaysAsDefaultOtherwise()
69 JCommander cmd = new JCommander(opts); in testSettingMultipleValuesToListTypeParameters()
DMethodSetterTest.java36 new JCommander(args, argv); in arityStringsSetter()
54 new JCommander(new Arg(), new String[] { "--host", "host" }); in setterThatThrows()
76 new JCommander(arg, new String[] { "--port", "42" }); in getterReturningNonString()
91 JCommander jc = new JCommander(arg, new String[] { "--port", "42" }); in noGetterButWithField()
DConverterFactoryTest.java53 JCommander jc = new JCommander(a); in parameterWithHostPortParameters()
66 JCommander jc = new JCommander(a); in mainWithHostPortParameters()
DMyClass.java13 JCommander jCommander = new JCommander(new MyClass()); in main()
/external/jcommander/src/test/java/com/beust/jcommander/command/
DCommandAliasTest.java21 import com.beust.jcommander.JCommander;
39 JCommander jc = new JCommander(cm); in oneCommandWithSingleAlias()
62 JCommander jc = new JCommander(cm); in testCommitWithAlias()
77 JCommander jc = new JCommander(cm); in twoCommandsWithAliases()
92 JCommander jc = new JCommander(cm); in clashingAliasesAreNotAllowed()
110 JCommander jc = new JCommander(cm); in mainCommandReturnsNullsForGetCommandAndGetParsedAlias()
118 JCommander jc = new JCommander(cm); in usageCanBeRetrievedWithBothCommandAndAlias()
137 JCommander jc = new JCommander(cm); in usageDisplaysCommandWithAliasesOnlyOnce()
153 JCommander jc = new JCommander(cm); in formattingLooksNice()
DCommandTest.java21 import com.beust.jcommander.JCommander;
33 JCommander jc = new JCommander(cm); in namedCommandTest1()
48 JCommander jc = new JCommander(cm); in shouldComplainIfNoAnnotations()
56 JCommander jc = new JCommander(cm); in commandTest1()
71 JCommander jc = new JCommander(cm); in commandTest2()
93 JCommander jc = new JCommander(cm); in hiddenCommandTest()
/external/smali/util/src/main/java/org/jf/util/jcommander/
DCommand.java34 import com.beust.jcommander.JCommander;
45 protected final List<JCommander> commandAncestors;
47 public Command(@Nonnull List<JCommander> commandAncestors) { in Command()
57 protected void setupCommand(JCommander jc) { in setupCommand()
60 protected JCommander getJCommander() { in getJCommander()
61 JCommander parentJc = Iterables.getLast(commandAncestors); in getJCommander()
65 public List<JCommander> getCommandHierarchy() { in getCommandHierarchy()
66 List<JCommander> commandHierarchy = Lists.newArrayList(commandAncestors); in getCommandHierarchy()
DExtendedCommands.java34 import com.beust.jcommander.JCommander;
59 public static String commandName(JCommander jc) { in commandName()
69 public static String[] commandAliases(JCommander jc) { in commandAliases()
78 public static boolean includeParametersInUsage(JCommander jc) { in includeParametersInUsage()
87 public static String postfixDescription(JCommander jc) { in postfixDescription()
96 public static void addExtendedCommand(JCommander jc, Command command) { in addExtendedCommand()
127 public static JCommander getSubcommand(JCommander jc, String commandName) { in getSubcommand()
131 for (JCommander command : jc.getCommands().values()) { in getSubcommand()
143 public static String getCommandDescription(@Nonnull JCommander jc) { in getCommandDescription()
DHelpFormatter.java34 import com.beust.jcommander.JCommander;
64 private static ExtendedParameters getExtendedParameters(JCommander jc) { in getExtendedParameters()
73 private static List<String> getCommandAliases(JCommander jc) { in getCommandAliases()
77 private static boolean includeParametersInUsage(@Nonnull JCommander jc) { in includeParametersInUsage()
82 private static String getPostfixDescription(@Nonnull JCommander jc) { in getPostfixDescription()
97 private List<ParameterDescription> getSortedParameters(JCommander jc) { in getSortedParameters()
127 public String format(@Nonnull JCommander... jc) { in format()
132 public String format(@Nonnull List<JCommander> commandHierarchy) { in format()
137 JCommander leafJc = Iterables.getLast(commandHierarchy); in format()
142 for (JCommander jc: commandHierarchy) { in format()
[all …]
/external/jcommander/src/test/java/com/beust/jcommander/dynamic/
DDynamicParameterTest.java3 import com.beust.jcommander.JCommander;
15 new JCommander(new DSimpleBad()).parse("-D", "a=b", "-D", "c=d"); in nonMapShouldThrow()
21 new JCommander(ds).parse("-D", "a:b", "-D", "c=d"); in wrongSeparatorShouldThrow()
26 new JCommander(ds).parse(parameters); in simple()
40 new JCommander(ds).usage(new StringBuilder()); in usage()
45 new JCommander(ds).parse("-D", "a=b", "-A", "c@d"); in differentAssignment()
/external/smali/smali/src/main/java/org/jf/smali/
DMain.java34 import com.beust.jcommander.JCommander;
62 private JCommander jc;
67 @Override protected JCommander getJCommander() { in getJCommander()
72 super(Lists.<JCommander>newArrayList()); in Main()
78 JCommander jc = new JCommander(main); in main()
81 List<JCommander> commandHierarchy = main.getCommandHierarchy(); in main()
DHelpCommand.java34 import com.beust.jcommander.JCommander;
53 public HelpCommand(@Nonnull List<JCommander> commandAncestors) { in HelpCommand()
58 JCommander parentJc = commandAncestors.get(commandAncestors.size() - 1); in run()
67 JCommander command = ExtendedCommands.getSubcommand(parentJc, cmd); in run()
88 public HlepCommand(@Nonnull List<JCommander> commandAncestors) { in HlepCommand()
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DMain.java34 import com.beust.jcommander.JCommander;
62 private JCommander jc;
65 super(Lists.<JCommander>newArrayList()); in Main()
71 @Override protected JCommander getJCommander() { in getJCommander()
78 JCommander jc = new JCommander(main); in main()
81 List<JCommander> commandHierarchy = main.getCommandHierarchy(); in main()
DListHelpCommand.java34 import com.beust.jcommander.JCommander;
54 public ListHelpCommand(@Nonnull List<JCommander> commandAncestors) { in ListHelpCommand()
65 JCommander parentJc = Iterables.getLast(commandAncestors); in run()
67 JCommander command = ExtendedCommands.getSubcommand(parentJc, cmd); in run()
88 public ListHlepCommand(@Nonnull List<JCommander> commandAncestors) { in ListHlepCommand()
DListCommand.java34 import com.beust.jcommander.JCommander;
55 public ListCommand(@Nonnull List<JCommander> commandAncestors) { in ListCommand()
59 @Override protected void setupCommand(JCommander jc) { in setupCommand()
60 List<JCommander> hierarchy = getCommandHierarchy(); in setupCommand()
76 JCommander jc = getJCommander(); in run()
DHelpCommand.java34 import com.beust.jcommander.JCommander;
51 public HelpCommand(@Nonnull List<JCommander> commandAncestors) { in HelpCommand()
60 JCommander parentJc = commandAncestors.get(commandAncestors.size() - 1); in run()
178 JCommander command = ExtendedCommands.getSubcommand(parentJc, cmd); in run()
200 public HlepCommand(@Nonnull List<JCommander> commandAncestors) { in HlepCommand()
/external/jcommander/src/test/java/test/
DQuotedMainTest.java9 import com.beust.jcommander.JCommander;
20 JCommander jc = new JCommander(this); in testMain()
/external/jcommander/src/test/java/com/beust/jcommander/args/
DArgsEnum.java27 import com.beust.jcommander.JCommander;
47 JCommander jc = new JCommander(args, argv); in main()
/external/jcommander/
DCHANGELOG6 Added: JCommander#acceptUnknownOption and JCommander#getUnknownArgs
7 Added: JCommander#allowAbbreviatedOptions (default: false)
8 Added: JCommander#setCaseSensitiveOptions (default: true)
63 Added: JCommander#setParameterDescriptionComparator for better control over usage()
91 Fixed: JCommander would sometimes just print a stack trace and continue, now rethrowing.
96 Added: Command usages are now shown in the order they were added to the JCommander object
97 Fixed: JCommander now compatible with Java 5
/external/jcommander/src/main/java/com/beust/jcommander/
DJCommander.java65 public class JCommander { class
123 private Map<ProgramName, JCommander> m_commands = Maps.newLinkedHashMap();
173 public JCommander() { in JCommander() method in JCommander
179 public JCommander(Object object) { in JCommander() method in JCommander
188 public JCommander(Object object, @Nullable ResourceBundle bundle) { in JCommander() method in JCommander
198 public JCommander(Object object, ResourceBundle bundle, String... args) { in JCommander() method in JCommander
208 public JCommander(Object object, String... args) { in JCommander() method in JCommander
301 for (Map.Entry<ProgramName, JCommander> entry : m_commands.entrySet()) { in initializeDefaultValues()
690 JCommander jc = findCommandByAlias(arg); in parseValues()
989 JCommander jc = findCommandByAlias(commandName); in usage()
[all …]
DParameterDescription.java50 private JCommander m_jCommander;
57 ResourceBundle bundle, JCommander jc) { in ParameterDescription()
70 ResourceBundle bundle, JCommander jc) { in ParameterDescription()
121 JCommander jCommander) { in init()
343 if (System.getProperty(JCommander.DEBUG_PROPERTY) != null) { in p()
344 JCommander.getConsole().println("[ParameterDescription] " + string); in p()

12