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

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

Best Java code snippets using picocli.CommandLine$Model$ParserSpec.unmatchedArgumentsAllowed (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

/** Adds the specified {@code UnmatchedArgsBinding} to the list of model objects to capture unmatched arguments for this command.
 * @param spec the unmatched arguments binding to capture unmatched arguments
 * @return this CommandSpec for method chaining */
public CommandSpec addUnmatchedArgsBinding(UnmatchedArgsBinding spec) { unmatchedArgs.add(spec); parser().unmatchedArgumentsAllowed(true); return this; }
origin: remkop/picocli

/** Sets whether the end user may specify unmatched arguments on the command line without a {@link UnmatchedArgumentException} being thrown.
 * The default is {@code false}.
 * <p>The specified setting will be registered with this {@code CommandLine} and the full hierarchy of its
 * subcommands and nested sub-subcommands <em>at the moment this method is called</em>. Subcommands added
 * later will have the default setting. To ensure a setting is applied to all
 * subcommands, call the setter last, after adding subcommands.</p>
 * @param newValue the new setting. When {@code true}, the last unmatched arguments are available via the {@link #getUnmatchedArguments()} method.
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 0.9.7
 * @see #getUnmatchedArguments()
 */
public CommandLine setUnmatchedArgumentsAllowed(boolean newValue) {
  getCommandSpec().parser().unmatchedArgumentsAllowed(newValue);
  for (CommandLine command : getCommandSpec().subcommands().values()) {
    command.setUnmatchedArgumentsAllowed(newValue);
  }
  return this;
}
origin: hazelcast/hazelcast-jet

/** Sets whether the end user may specify unmatched arguments on the command line without a {@link UnmatchedArgumentException} being thrown.
 * The default is {@code false}.
 * <p>The specified setting will be registered with this {@code CommandLine} and the full hierarchy of its
 * subcommands and nested sub-subcommands <em>at the moment this method is called</em>. Subcommands added
 * later will have the default setting. To ensure a setting is applied to all
 * subcommands, call the setter last, after adding subcommands.</p>
 * @param newValue the new setting. When {@code true}, the last unmatched arguments are available via the {@link #getUnmatchedArguments()} method.
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 0.9.7
 * @see #getUnmatchedArguments()
 */
public CommandLine setUnmatchedArgumentsAllowed(boolean newValue) {
  getCommandSpec().parser().unmatchedArgumentsAllowed(newValue);
  for (CommandLine command : getCommandSpec().subcommands().values()) {
    command.setUnmatchedArgumentsAllowed(newValue);
  }
  return this;
}
origin: hazelcast/hazelcast-jet

/** Adds the specified {@code UnmatchedArgsBinding} to the list of model objects to capture unmatched arguments for this command.
 * @param spec the unmatched arguments binding to capture unmatched arguments
 * @return this CommandSpec for method chaining */
public CommandSpec addUnmatchedArgsBinding(UnmatchedArgsBinding spec) { unmatchedArgs.add(spec); parser().unmatchedArgumentsAllowed(true); return this; }
origin: hazelcast/hazelcast-jet

/** Returns whether the end user may specify arguments on the command line that are not matched to any option or parameter fields.
 * The default is {@code false} and a {@link UnmatchedArgumentException} is thrown if this happens.
 * When {@code true}, the last unmatched arguments are available via the {@link #getUnmatchedArguments()} method.
 * @return {@code true} if the end use may specify unmatched arguments on the command line, {@code false} otherwise
 * @see #getUnmatchedArguments()
 * @since 0.9.7
 */
public boolean isUnmatchedArgumentsAllowed() {
  return getCommandSpec().parser().unmatchedArgumentsAllowed();
}
origin: remkop/picocli

/** Returns whether the end user may specify arguments on the command line that are not matched to any option or parameter fields.
 * The default is {@code false} and a {@link UnmatchedArgumentException} is thrown if this happens.
 * When {@code true}, the last unmatched arguments are available via the {@link #getUnmatchedArguments()} method.
 * @return {@code true} if the end use may specify unmatched arguments on the command line, {@code false} otherwise
 * @see #getUnmatchedArguments()
 * @since 0.9.7
 */
public boolean isUnmatchedArgumentsAllowed() {
  return getCommandSpec().parser().unmatchedArgumentsAllowed();
}
picocliCommandLine$Model$ParserSpecunmatchedArgumentsAllowed

Popular methods of CommandLine$Model$ParserSpec

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Socket (java.net)
    Provides a client-side TCP socket.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Table (org.hibernate.mapping)
    A relational table
  • Option (scala)
  • Top Sublime Text plugins
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