Tabnine Logo
CommandLine$Model$ParserSpec.aritySatisfiedByAttachedOptionParam
Code IndexAdd Tabnine to your IDE (free)

How to use
aritySatisfiedByAttachedOptionParam
method
in
picocli.CommandLine$Model$ParserSpec

Best Java code snippets using picocli.CommandLine$Model$ParserSpec.aritySatisfiedByAttachedOptionParam (Showing top 7 results out of 315)

origin: remkop/picocli

private void printParser(ParserSpec parser, PrintWriter pw, String indent) {
  pw.printf("%sParserSpec:%n", indent);
  indent += "  ";
  pw.printf("%sseparator: '%s'%n", indent, parser.separator());
  pw.printf("%sendOfOptionsDelimiter: '%s'%n", indent, parser.endOfOptionsDelimiter());
  pw.printf("%sexpandAtFiles: %s%n", indent, parser.expandAtFiles());
  pw.printf("%satFileCommentChar: '%s'%n", indent, parser.atFileCommentChar());
  pw.printf("%soverwrittenOptionsAllowed: %s%n", indent, parser.overwrittenOptionsAllowed());
  pw.printf("%sunmatchedArgumentsAllowed: %s%n", indent, parser.unmatchedArgumentsAllowed());
  pw.printf("%sunmatchedOptionsArePositionalParams: %s%n", indent, parser.unmatchedOptionsArePositionalParams());
  pw.printf("%sstopAtUnmatched: %s%n", indent, parser.stopAtUnmatched());
  pw.printf("%sstopAtPositional: %s%n", indent, parser.stopAtPositional());
  pw.printf("%sposixClusteredShortOptionsAllowed: %s%n", indent, parser.posixClusteredShortOptionsAllowed());
  pw.printf("%saritySatisfiedByAttachedOptionParam: %s%n", indent, parser.aritySatisfiedByAttachedOptionParam());
  pw.printf("%scaseInsensitiveEnumValuesAllowed: %s%n", indent, parser.caseInsensitiveEnumValuesAllowed());
  pw.printf("%scollectErrors: %s%n", indent, parser.collectErrors());
  pw.printf("%slimitSplit: %s%n", indent, parser.limitSplit());
  pw.printf("%stoggleBooleanFlags: %s%n", indent, parser.toggleBooleanFlags());
}
origin: remkop/picocli

          String argDescription) throws Exception {
updateHelpRequested(argSpec);
boolean consumeOnlyOne = commandSpec.parser().aritySatisfiedByAttachedOptionParam() && lookBehind.isAttached();
Stack<String> workingStack = args;
if (consumeOnlyOne) {
origin: remkop/picocli

@Test
public void testInterpreterProcessClusteredShortOptions_complex() {
  class App {
    @Option(names = "-x", arity = "1", split = ",") String x;
    @Parameters List<String> remainder;
  }
  App app = new App();
  CommandLine cmd = new CommandLine(app);
  cmd.getCommandSpec().parser().aritySatisfiedByAttachedOptionParam(true);
  cmd.parseArgs("-xa,b,c", "d", "e");
  assertEquals("a,b,c", app.x);
  assertEquals(Arrays.asList("d", "e"), app.remainder);
}
origin: hazelcast/hazelcast-jet

          String argDescription) throws Exception {
updateHelpRequested(argSpec);
boolean consumeOnlyOne = commandSpec.parser().aritySatisfiedByAttachedOptionParam() && lookBehind.isAttached();
Stack<String> workingStack = args;
if (consumeOnlyOne) {
origin: info.picocli/picocli

@Test
public void testInterpreterProcessClusteredShortOptions_complex() {
  class App {
    @Option(names = "-x", arity = "1", split = ",") String x;
    @Parameters List<String> remainder;
  }
  App app = new App();
  CommandLine cmd = new CommandLine(app);
  cmd.getCommandSpec().parser().aritySatisfiedByAttachedOptionParam(true);
  cmd.parseArgs("-xa,b,c", "d", "e");
  assertEquals("a,b,c", app.x);
  assertEquals(Arrays.asList("d", "e"), app.remainder);
}
origin: info.picocli/picocli

private <T> T parseCommonsCliCompatible(T obj, String[] args) {
  CommandLine cmd = new CommandLine(obj);
  cmd.getCommandSpec().parser()
      .limitSplit(true)
      .aritySatisfiedByAttachedOptionParam(true);
  cmd.parseArgs(args);
  return obj;
}
origin: remkop/picocli

private <T> T parseCommonsCliCompatible(T obj, String[] args) {
  CommandLine cmd = new CommandLine(obj);
  cmd.getCommandSpec().parser()
      .limitSplit(true)
      .aritySatisfiedByAttachedOptionParam(true);
  cmd.parseArgs(args);
  return obj;
}
picocliCommandLine$Model$ParserSpecaritySatisfiedByAttachedOptionParam

Javadoc

Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity. The default is false.

Popular methods of CommandLine$Model$ParserSpec

  • separator
  • caseInsensitiveEnumValuesAllowed
  • collectErrors
  • limitSplit
  • posixClusteredShortOptionsAllowed
  • unmatchedOptionsArePositionalParams
  • splitQuotedStrings
  • trimQuotes
  • useSimplifiedAtFiles
  • atFileCommentChar
  • endOfOptionsDelimiter
  • expandAtFiles
  • endOfOptionsDelimiter,
  • expandAtFiles,
  • overwrittenOptionsAllowed,
  • stopAtPositional,
  • stopAtUnmatched,
  • toggleBooleanFlags,
  • unmatchedArgumentsAllowed,
  • <init>,
  • initFrom

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now