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

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

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

origin: remkop/picocli

private void handleUnmatchedArgument(Stack<String> args) throws Exception {
  if (!args.isEmpty()) { handleUnmatchedArgument(args.pop()); }
  if (config().stopAtUnmatched()) {
    // addAll would give args in reverse order
    while (!args.isEmpty()) { handleUnmatchedArgument(args.pop()); }
  }
}
private void handleUnmatchedArgument(String arg) {
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

/** Sets whether the parser should stop interpreting options and positional parameters as soon as it encounters an
 * unmatched option. Unmatched options are arguments that look like an option but are not one of the known options, or
 * positional arguments for which there is no available slots (the command has no positional parameters or their size is limited).
 * The default is {@code false}.
 * <p>Setting this flag to {@code true} automatically sets the {@linkplain #setUnmatchedArgumentsAllowed(boolean) unmatchedArgumentsAllowed} flag to {@code true} also.</p>
 * <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 {@code true} when an unmatched option should result in the remaining command line arguments to be added to the
 *      {@linkplain #getUnmatchedArguments() unmatchedArguments list}
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 2.3
 */
public CommandLine setStopAtUnmatched(boolean newValue) {
  getCommandSpec().parser().stopAtUnmatched(newValue);
  for (CommandLine command : getCommandSpec().subcommands().values()) {
    command.setStopAtUnmatched(newValue);
  }
  if (newValue) { setUnmatchedArgumentsAllowed(true); }
  return this;
}
origin: hazelcast/hazelcast-jet

/** Sets whether the parser should stop interpreting options and positional parameters as soon as it encounters an
 * unmatched option. Unmatched options are arguments that look like an option but are not one of the known options, or
 * positional arguments for which there is no available slots (the command has no positional parameters or their size is limited).
 * The default is {@code false}.
 * <p>Setting this flag to {@code true} automatically sets the {@linkplain #setUnmatchedArgumentsAllowed(boolean) unmatchedArgumentsAllowed} flag to {@code true} also.</p>
 * <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 {@code true} when an unmatched option should result in the remaining command line arguments to be added to the
 *      {@linkplain #getUnmatchedArguments() unmatchedArguments list}
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 2.3
 */
public CommandLine setStopAtUnmatched(boolean newValue) {
  getCommandSpec().parser().stopAtUnmatched(newValue);
  for (CommandLine command : getCommandSpec().subcommands().values()) {
    command.setStopAtUnmatched(newValue);
  }
  if (newValue) { setUnmatchedArgumentsAllowed(true); }
  return this;
}
origin: hazelcast/hazelcast-jet

private void handleUnmatchedArgument(Stack<String> args) throws Exception {
  if (!args.isEmpty()) { handleUnmatchedArgument(args.pop()); }
  if (config().stopAtUnmatched()) {
    // addAll would give args in reverse order
    while (!args.isEmpty()) { handleUnmatchedArgument(args.pop()); }
  }
}
private void handleUnmatchedArgument(String arg) {
origin: hazelcast/hazelcast-jet

/** Returns whether the parser should stop interpreting options and positional parameters as soon as it encounters an
 * unmatched option. Unmatched options are arguments that look like an option but are not one of the known options, or
 * positional arguments for which there is no available slots (the command has no positional parameters or their size is limited).
 * The default is {@code false}.
 * <p>Setting this flag to {@code true} automatically sets the {@linkplain #isUnmatchedArgumentsAllowed() unmatchedArgumentsAllowed} flag to {@code true} also.</p>
 * @return {@code true} when an unmatched option should result in the remaining command line arguments to be added to the
 *      {@linkplain #getUnmatchedArguments() unmatchedArguments list}
 * @since 2.3
 */
public boolean isStopAtUnmatched() {
  return getCommandSpec().parser().stopAtUnmatched();
}
origin: remkop/picocli

/** Returns whether the parser should stop interpreting options and positional parameters as soon as it encounters an
 * unmatched option. Unmatched options are arguments that look like an option but are not one of the known options, or
 * positional arguments for which there is no available slots (the command has no positional parameters or their size is limited).
 * The default is {@code false}.
 * <p>Setting this flag to {@code true} automatically sets the {@linkplain #isUnmatchedArgumentsAllowed() unmatchedArgumentsAllowed} flag to {@code true} also.</p>
 * @return {@code true} when an unmatched option should result in the remaining command line arguments to be added to the
 *      {@linkplain #getUnmatchedArguments() unmatchedArguments list}
 * @since 2.3
 */
public boolean isStopAtUnmatched() {
  return getCommandSpec().parser().stopAtUnmatched();
}
picocliCommandLine$Model$ParserSpecstopAtUnmatched

Popular methods of CommandLine$Model$ParserSpec

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
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