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

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

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

private void addOrExpand(String arg, List<String> arguments, Set<String> visited) {
  if (config().expandAtFiles() && !arg.equals("@") && arg.startsWith("@")) {
    arg = arg.substring(1);
    if (arg.startsWith("@")) {
      if (tracer.isInfo()) { tracer.info("Not expanding @-escaped argument %s (trimmed leading '@' char)%n", arg); }
    } else {
      if (tracer.isInfo()) { tracer.info("Expanding argument file @%s%n", arg); }
      expandArgumentFile(arg, arguments, visited);
      return;
    }
  }
  arguments.add(arg);
}
private void expandArgumentFile(String fileName, List<String> arguments, Set<String> visited) {
origin: hazelcast/hazelcast-jet

private void addOrExpand(String arg, List<String> arguments, Set<String> visited) {
  if (config().expandAtFiles() && !arg.equals("@") && arg.startsWith("@")) {
    arg = arg.substring(1);
    if (arg.startsWith("@")) {
      if (tracer.isInfo()) { tracer.info("Not expanding @-escaped argument %s (trimmed leading '@' char)%n", arg); }
    } else {
      if (tracer.isInfo()) { tracer.info("Expanding argument file @%s%n", arg); }
      expandArgumentFile(arg, arguments, visited);
      return;
    }
  }
  arguments.add(arg);
}
private void expandArgumentFile(String fileName, List<String> arguments, Set<String> visited) {
origin: hazelcast/hazelcast-jet

/** Returns whether arguments starting with {@code '@'} should be treated as the path to an argument file and its
 * contents should be expanded into separate arguments for each line in the specified file.
 * This property is {@code true} by default.
 * @return whether "argument files" or {@code @files} should be expanded into their content
 * @since 2.1 */
public boolean isExpandAtFiles() { return getCommandSpec().parser().expandAtFiles(); }
origin: hazelcast/hazelcast-jet

/** Sets whether arguments starting with {@code '@'} should be treated as the path to an argument file and its
 * contents should be expanded into separate arguments for each line in the specified file. ({@code true} by default.)
 * @param expandAtFiles whether "argument files" or {@code @files} should be expanded into their content
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 2.1 */
public CommandLine setExpandAtFiles(boolean expandAtFiles) {
  getCommandSpec().parser().expandAtFiles(expandAtFiles);
  return this;
}
origin: remkop/picocli

/** Sets whether arguments starting with {@code '@'} should be treated as the path to an argument file and its
 * contents should be expanded into separate arguments for each line in the specified file. ({@code true} by default.)
 * @param expandAtFiles whether "argument files" or {@code @files} should be expanded into their content
 * @return this {@code CommandLine} object, to allow method chaining
 * @since 2.1 */
public CommandLine setExpandAtFiles(boolean expandAtFiles) {
  getCommandSpec().parser().expandAtFiles(expandAtFiles);
  return this;
}
origin: remkop/picocli

/** Returns whether arguments starting with {@code '@'} should be treated as the path to an argument file and its
 * contents should be expanded into separate arguments for each line in the specified file.
 * This property is {@code true} by default.
 * @return whether "argument files" or {@code @files} should be expanded into their content
 * @since 2.1 */
public boolean isExpandAtFiles() { return getCommandSpec().parser().expandAtFiles(); }
picocliCommandLine$Model$ParserSpecexpandAtFiles

Popular methods of CommandLine$Model$ParserSpec

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JFrame (javax.swing)
  • Top 12 Jupyter Notebook extensions
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