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

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

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

if (commandSpec.parser().toggleBooleanFlags()) {
  Boolean currentValue = (Boolean) argSpec.getValue();
origin: remkop/picocli

/** Sets whether the value of boolean flag options should be "toggled" when the option is matched. The default is {@code true}.
 * <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
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 3.0
 */
public CommandLine setToggleBooleanFlags(boolean newValue) {
  getCommandSpec().parser().toggleBooleanFlags(newValue);
  for (CommandLine command : getCommandSpec().subcommands().values()) {
    command.setToggleBooleanFlags(newValue);
  }
  return this;
}
origin: hazelcast/hazelcast-jet

if (commandSpec.parser().toggleBooleanFlags()) {
  Boolean currentValue = (Boolean) argSpec.getValue();
origin: hazelcast/hazelcast-jet

/** Sets whether the value of boolean flag options should be "toggled" when the option is matched. The default is {@code true}.
 * <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
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 3.0
 */
public CommandLine setToggleBooleanFlags(boolean newValue) {
  getCommandSpec().parser().toggleBooleanFlags(newValue);
  for (CommandLine command : getCommandSpec().subcommands().values()) {
    command.setToggleBooleanFlags(newValue);
  }
  return this;
}
origin: hazelcast/hazelcast-jet

/** Returns whether the value of boolean flag options should be "toggled" when the option is matched.
 * By default, flags are toggled, so if the value is {@code true} it is set to {@code false}, and when the value is
 * {@code false} it is set to {@code true}. If toggling is off, flags are simply set to {@code true}.
 * @return {@code true} the value of boolean flag options should be "toggled" when the option is matched, {@code false} otherwise
 * @since 3.0
 */
public boolean isToggleBooleanFlags() {
  return getCommandSpec().parser().toggleBooleanFlags();
}
origin: remkop/picocli

/** Returns whether the value of boolean flag options should be "toggled" when the option is matched.
 * By default, flags are toggled, so if the value is {@code true} it is set to {@code false}, and when the value is
 * {@code false} it is set to {@code true}. If toggling is off, flags are simply set to {@code true}.
 * @return {@code true} the value of boolean flag options should be "toggled" when the option is matched, {@code false} otherwise
 * @since 3.0
 */
public boolean isToggleBooleanFlags() {
  return getCommandSpec().parser().toggleBooleanFlags();
}
picocliCommandLine$Model$ParserSpectoggleBooleanFlags

Popular methods of CommandLine$Model$ParserSpec

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

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JTable (javax.swing)
  • Option (scala)
  • Top plugins for WebStorm
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