Class

org.rogach.scallop

Subcommand

Related Doc: package scallop

Permalink

class Subcommand extends ScallopConf

Base class for CLI subcommands.

Source
ScallopConfBase.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Subcommand
  2. ScallopConf
  3. ScallopConfBase
  4. ScallopConfValidations
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Subcommand(commandNameAndAliases: String*)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var _guessOptionName: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    ScallopConfBase
  5. def addSubcommand(conf: Subcommand): Unit

    Permalink

    Add subcommand to this config

    Add subcommand to this config

    Definition Classes
    ScallopConfBase
  6. def addValidation(fn: ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfBase
  7. def allDefinedOrUndefined(list: ScallopOption[_]*): Unit

    Permalink

    Add a check that either all or none of the provided options have values defined (either supplied in arguments or got from defaults).

    Add a check that either all or none of the provided options have values defined (either supplied in arguments or got from defaults).

    list

    list of options

    Definition Classes
    ScallopConfBase
  8. def appendDefaultToDescription: Boolean

    Permalink

    If set to true, scallop would append auto-generated text about default option value to option descriptions.

    If set to true, scallop would append auto-generated text about default option value to option descriptions.

    Definition Classes
    ScallopConfBase
  9. def appendDefaultToDescription_=(v: Boolean): Unit

    Permalink

    If set to true, scallop would append auto-generated text about default option value to option descriptions.

    If set to true, scallop would append auto-generated text about default option value to option descriptions.

    Definition Classes
    ScallopConfBase
  10. val args: Seq[String]

    Permalink
    Definition Classes
    ScallopConfBase
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def assertVerified(): Unit

    Permalink

    Checks that this Conf object is verified.

    Checks that this Conf object is verified. If it is not, throws an exception.

    Definition Classes
    ScallopConfBase
  13. def banner(b: String): Unit

    Permalink

    Add a banner string to option builder.

    Add a banner string to option builder.

    b

    Banner string.

    Definition Classes
    ScallopConfBase
  14. var builder: Scallop

    Permalink

    Internal immutable builder for options setup.

    Internal immutable builder for options setup.

    Definition Classes
    ScallopConfBase
  15. def choice(choices: Seq[String], name: String = null, short: Char = '\u0000', descr: String = "", default: ⇒ Option[String] = None, required: Boolean = false, argName: String = "arg", hidden: Boolean = false, noshort: Boolean = noshort, group: ScallopOptionGroup = null): ScallopOption[String]

    Permalink

    Add a new choice option definition to this config.

    Add a new choice option definition to this config.

    This option takes a single string argument and restricts values to a list of possible choices.

    choices

    List of possible argument values.

    name

    Name for new option, used as long option name in parsing, and for option identification.

    short

    Overload the char that will be used as short option name. Defaults to first character of the name.

    descr

    Description for this option, for help description.

    default

    Default value to use if option is not found in input arguments (if you provide this, you can omit the type on method).

    required

    Is this option required? Defaults to false.

    argName

    The name for this option argument, as it will appear in help. Defaults to "arg".

    hidden

    If set to true, then this option will be hidden from generated help output.

    noshort

    If set to true, then this option does not have any short name.

    group

    Option group to add this option to.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def codependent(list: ScallopOption[_]*): Unit

    Permalink

    Add a check that either all or none of the provided options have values supplied in arguments.

    Add a check that either all or none of the provided options have values supplied in arguments.

    list

    list of codependent options

    Definition Classes
    ScallopConfBase
  18. val commandNameAndAliases: Seq[String]

    Permalink
    Attributes
    protected
    Definition Classes
    ScallopConfBase
  19. def conflicts(opt: ScallopOption[_], list: List[ScallopOption[_]]): Unit

    Permalink

    Add a check that none of the options in the list were supplied if opt was supplied.

    Add a check that none of the options in the list were supplied if opt was supplied.

    opt

    option that conflicts with all of options in list

    list

    list of dependencies (all will need to be absent)

    Definition Classes
    ScallopConfBase
  20. def dependsOnAll(opt: ScallopOption[_], list: List[ScallopOption[_]]): Unit

    Permalink

    Add a check that all of the options in the list were also supplied if opt was supplied.

    Add a check that all of the options in the list were also supplied if opt was supplied.

    opt

    option that depends on all of options in list

    list

    list of dependencies (all will need to be present)

    Definition Classes
    ScallopConfBase
  21. def dependsOnAny(opt: ScallopOption[_], list: List[ScallopOption[_]]): Unit

    Permalink

    Add a check that at least one of the options in the list was supplied if opt was supplied.

    Add a check that at least one of the options in the list was supplied if opt was supplied.

    opt

    option, that depends on any of options in list

    list

    list of dependencies (at least one will need to be present)

    Definition Classes
    ScallopConfBase
  22. def descr(d: String): Unit

    Permalink

    Short description for this subcommand.

    Short description for this subcommand. Used if parent command has shortSubcommandsHelp enabled.

  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  25. var errorMessageHandler: (String) ⇒ Unit

    Permalink

    This function is called with the error message when ScallopException occurs.

    This function is called with the error message when ScallopException occurs. By default, this function prints message (prefixed by *printedName*) to stdout, coloring the output if possible, then calls sys.exit(1).

    Update this variable with another function if you need to change that behavior.

    Definition Classes
    ScallopConfBase
  26. def filteredSummary(blurred: Set[String]): String

    Permalink

    Get summary of current parser state, hididng values for some of the options.

    Get summary of current parser state, hididng values for some of the options. Useful if you log the summary and want to avoid storing sensitive information in the logs (like passwords)

    blurred

    names of the options that should be hidden.

    returns

    a list of all options in the builder

    Definition Classes
    ScallopConfBase
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def footer(f: String): Unit

    Permalink

    Add a footer string to this builder.

    Add a footer string to this builder.

    f

    footer string.

    Definition Classes
    ScallopConfBase
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getHelpString(): String

    Permalink

    Get generated help contents as a string.

    Get generated help contents as a string.

    Definition Classes
    ScallopConfBase
  31. def group(header: String = ""): ScallopOptionGroup

    Permalink

    Create and return a new option group

    Create and return a new option group

    Definition Classes
    ScallopConfBase
  32. def guessOptionName: Boolean

    Permalink

    If true, scallop would try to guess missing option names from the names of their fields.

    If true, scallop would try to guess missing option names from the names of their fields.

    Definition Classes
    ScallopConf
  33. def guessOptionName_=(v: Boolean): Unit

    Permalink

    If set to true, scallop would try to guess missing option names from the names of their fields.

    If set to true, scallop would try to guess missing option names from the names of their fields.

    Definition Classes
    ScallopConf
  34. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  35. def helpFormatter: ScallopHelpFormatter

    Permalink

    Get current custom help formatter.

    Get current custom help formatter.

    Definition Classes
    ScallopConfBase
  36. def helpFormatter_=(formatter: ScallopHelpFormatter): Unit

    Permalink

    Set custom help formatter.

    Set custom help formatter.

    Definition Classes
    ScallopConfBase
  37. def helpWidth(w: Int): Unit

    Permalink

    Explicitly set width of help printout.

    Explicitly set width of help printout. By default, Scallop tries to determine it from terminal width or defaults to 80 characters.

    Definition Classes
    ScallopConfBase
  38. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  39. var isRootConfig: Boolean

    Permalink

    true if this config does not represent a subcommand

    true if this config does not represent a subcommand

    Attributes
    protected
    Definition Classes
    ScallopConfBase
  40. def mainOptions: Seq[CliOption]

    Permalink

    Options, that are to be printed first in the help printout

    Options, that are to be printed first in the help printout

    Definition Classes
    ScallopConfBase
  41. def mutuallyExclusive(list: ScallopOption[_]*): Unit

    Permalink

    Add a check that only one or zero of the provided options have values supplied in arguments.

    Add a check that only one or zero of the provided options have values supplied in arguments.

    list

    list of mutually exclusive options

    Definition Classes
    ScallopConfBase
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. def noshort: Boolean

    Permalink

    If set to true, then do not generate short names for subsequently defined options by default.

    If set to true, then do not generate short names for subsequently defined options by default. Only applied if a subsequent option definition does not explicitly provide its noshort-parameter.

    Definition Classes
    ScallopConfBase
  44. def noshort_=(v: Boolean): Unit

    Permalink

    If set to true, then do not generate short names for subsequently defined options by default.

    If set to true, then do not generate short names for subsequently defined options by default. Only applied if a subsequent option definition does not explicitly provide its noshort-parameter.

    Definition Classes
    ScallopConfBase
  45. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. def number(name: String = null, descr: String = "", validate: (Long) ⇒ Boolean = (_:Long) => true, required: Boolean = false, default: ⇒ Option[Long] = None, hidden: Boolean = false, group: ScallopOptionGroup = null)(implicit conv: ValueConverter[Long]): ScallopOption[Long]

    Permalink

    Add new number argument definition to this config and get a holder for it's value.

    Add new number argument definition to this config and get a holder for it's value.

    Parses arguments like -1 or -3 (like GNU tail, for example).

    name

    Name for new definition, used for identification.

    descr

    Description for this option, for help text.

    validate

    The function that validates the parsed value.

    required

    Is this trailing argument required? Defaults to true.

    default

    If this argument is not required and not found in the argument list, use this value.

    hidden

    If set to true then this option will not be present in auto-generated help.

    group

    Option group to add this option to.

    conv

    The converter for this option. Usually found implicitly.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  48. def onError(e: Throwable): Unit

    Permalink

    This function is called in event of any exception in arguments parsing.

    This function is called in event of any exception in arguments parsing. By default, it catches only standard Scallop errors, letting all other pass through.

    Attributes
    protected
    Definition Classes
    ScallopConfBase
  49. def opt[A](name: String = null, short: Char = '\u0000', descr: String = "", default: ⇒ Option[A] = None, validate: (A) ⇒ Boolean = (_:A) => true, required: Boolean = false, argName: String = "arg", hidden: Boolean = false, noshort: Boolean = builder.noshort, group: ScallopOptionGroup = null)(implicit conv: ValueConverter[A]): ScallopOption[A]

    Permalink

    Add a new simple option definition to this config.

    Add a new simple option definition to this config.

    name

    Name for new option, used as long option name in parsing, and for option identification.

    short

    By default, the first character of option name is used for short option name. You can override it by specifying the required character (short = 'c').

    descr

    Description for the option. Will be printed in help message, carefully formatted to the output width (80 characters by default).

    default

    Default value to use if option is not found in input arguments (if you provide this, you can omit the type on method).

    validate

    The function that validates the parsed value.

    required

    Is this option required? Defaults to false.

    argName

    The name for this option argument, as it will appear in help. Defaults to "arg".

    hidden

    Hides description of this option from help (this can be useful for debugging options).

    noshort

    If set to true, then this option does not have any short name.

    group

    Option group to add this option to.

    conv

    The converter for this option. Usually found implicitly.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  50. def optionNameGuessingSupported: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    ScallopConfScallopConfBase
  51. var parentConfig: ScallopConfBase

    Permalink

    Pointer to parent ScallopConf

    Pointer to parent ScallopConf

    Attributes
    protected
    Definition Classes
    ScallopConfBase
  52. def performOptionNameGuessing(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ScallopConfScallopConfBase
  53. def printHelp(): Unit

    Permalink

    Prints help message (with version, banner, option usage and footer) to stdout.

    Prints help message (with version, banner, option usage and footer) to stdout.

    Definition Classes
    ScallopConfBase
  54. var printedName: String

    Permalink

    This name would be included in output when reporting errors.

    This name would be included in output when reporting errors.

    Definition Classes
    ScallopConfBase
  55. def props[A](name: Char = 'D', descr: String = "", keyName: String = "key", valueName: String = "value", hidden: Boolean = false, group: ScallopOptionGroup = null)(implicit conv: ValueConverter[Map[String, A]]): LazyMap[String, A]

    Permalink

    Add new property option definition to this config object.

    Add new property option definition to this config object.

    This option will parse arguments like -Dkey=value or -D key1=value1 key2=value2.

    name

    Character that will be used as prefix for property arguments.

    descr

    Description for this property option, for help description.

    keyName

    Name for 'key' part of this option arg name, as it will appear in help option definition. Defaults to "key".

    valueName

    Name for 'value' part of this option arg name, as it will appear in help option definition. Defaults to "value".

    hidden

    If set to true, then this option will be hidden from generated help output.

    group

    Option group to add this option to.

    conv

    The converter for this option. Usually found implicitly.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  56. def propsLong[A](name: String = "Props", descr: String = "", keyName: String = "key", valueName: String = "value", hidden: Boolean = false, group: ScallopOptionGroup = null)(implicit conv: ValueConverter[Map[String, A]]): Map[String, A]

    Permalink

    Add new property option definition to this config object.

    Add new property option definition to this config object.

    This option will parse arguments like --Props key1=value1 key2=value2.

    name

    Name for new option, used as long option name in parsing, and for option identification.

    descr

    Description for this property option, for help description.

    keyName

    Name for 'key' part of this option arg name, as it will appear in help option definition. Defaults to "key".

    valueName

    Name for 'value' part of this option arg name, as it will appear in help option definition. Defaults to "value".

    hidden

    If set to true, then this option will be hidden from generated help output.

    group

    Option group to add this option to.

    conv

    The converter for this option. Usually found implicitly.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  57. def requireAtLeastOne(list: ScallopOption[_]*): Unit

    Permalink

    Add a check that at least one of the options is supplied.

    Add a check that at least one of the options is supplied.

    list

    list of options (at least one must be present)

    Definition Classes
    ScallopConfBase
  58. def requireOne(list: ScallopOption[_]*): Unit

    Permalink

    Add a check that at one and only one option in the list is supplied.

    Add a check that at one and only one option in the list is supplied.

    list

    list of conflicting options (exactly one must be present)

    Definition Classes
    ScallopConfBase
  59. def requireSubcommand(): Unit

    Permalink

    Require subcommand to be provided (validation will fail if no subcommand was provided on the command line).

    Require subcommand to be provided (validation will fail if no subcommand was provided on the command line).

    Definition Classes
    ScallopConfBase
  60. def shortSubcommandsHelp(enable: Boolean = true): Unit

    Permalink

    If set to true, do not output subcommand options in the help output for the main program (only output short subcommand description in such cases).

    If set to true, do not output subcommand options in the help output for the main program (only output short subcommand description in such cases). Full help for subcommand options can still be accessed via program subcommand-name --help.

    enable

    enable short format for subcommand help

    Definition Classes
    ScallopConfBase
  61. def subcommand: Option[ScallopConfBase]

    Permalink

    Retrieves the choosen subcommand.

    Retrieves the choosen subcommand.

    Definition Classes
    ScallopConfBase
  62. def subcommands: List[ScallopConfBase]

    Permalink

    Retrieves the list of the chosen nested subcommands.

    Retrieves the list of the chosen nested subcommands.

    Definition Classes
    ScallopConfBase
  63. var subconfigs: Seq[ScallopConfBase]

    Permalink

    List of sub-configs of this config.

    List of sub-configs of this config.

    Attributes
    protected
    Definition Classes
    ScallopConfBase
  64. def summary: String

    Permalink

    Get summary of current parser state.

    Get summary of current parser state.

    returns

    a list of all options in the builder, and corresponding values for them.

    Definition Classes
    ScallopConfBase
  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  66. def tally(name: String = null, short: Char = '\u0000', descr: String = "", hidden: Boolean = false, noshort: Boolean = builder.noshort, group: ScallopOptionGroup = null): ScallopOption[Int]

    Permalink

    Add a new tally option definition to this config.

    Add a new tally option definition to this config.

    Tally options count how many times the option was provided on the command line. E.g., -vvv will be countet as 3.

    name

    Name for new option, used as long option name in parsing, and for option identification.

    short

    Overload the char that will be used as short option name. Defaults to first character of the name.

    descr

    Description for this option, for help description.

    hidden

    If set to true, then this option will be hidden from generated help output.

    noshort

    If set to true, then this option does not have any short name.

    group

    Option group to add this option to.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  67. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  68. def toggle(name: String = null, default: ⇒ Option[Boolean] = None, short: Char = '\u0000', noshort: Boolean = noshort, prefix: String = "no", descrYes: String = "", descrNo: String = "", hidden: Boolean = false, group: ScallopOptionGroup = null): ScallopOption[Boolean]

    Permalink

    Add new toggle option definition to this config, and get a holder for it's value.

    Add new toggle option definition to this config, and get a holder for it's value.

    Toggle options are just glorified flag options. For example, if you create a toggle option with name "verbose", it will be invocable in three ways - "--verbose", "--noverbose", "-v".

    name

    Name of this option

    default

    default value for this option

    short

    Overload the char that will be used as short option name. Defaults to first character of the name.

    noshort

    If set to true, then this option will not have any short name.

    prefix

    Prefix to name of the option, that will be used for "negative" version of the option.

    descrYes

    Description for positive variant of this option.

    descrNo

    Description for negative variant of this option.

    hidden

    If set to true, then this option will not be present in auto-generated help.

    group

    Option group to add this option to.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  69. def trailArg[A](name: String = null, descr: String = "", validate: (A) ⇒ Boolean = (_:A) => true, required: Boolean = true, default: ⇒ Option[A] = None, hidden: Boolean = false, group: ScallopOptionGroup = null)(implicit conv: ValueConverter[A]): ScallopOption[A]

    Permalink

    Add new trailing argument definition to this config.

    Add new trailing argument definition to this config.

    name

    Name for new definition, used for identification.

    descr

    Description for this option, for help text.

    validate

    The function that validates the parsed value.

    required

    Is this trailing argument required? Defaults to true.

    default

    If this argument is not required and not found in the argument list, use this value.

    hidden

    If set to true then this option will not be present in auto-generated help.

    group

    Option group to add this option to.

    conv

    The converter for this option. Usually found implicitly.

    returns

    ScallopOption, container for the parsed option value.

    Definition Classes
    ScallopConfBase
  70. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19], o20: ScallopOption[A20], o21: ScallopOption[A21], o22: ScallopOption[A22])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  71. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19], o20: ScallopOption[A20], o21: ScallopOption[A21])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  72. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19], o20: ScallopOption[A20])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  73. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  74. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  75. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  76. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  77. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  78. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  79. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  80. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  81. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  82. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9, A10) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  83. def validate[A1, A2, A3, A4, A5, A6, A7, A8, A9](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9])(fn: (A1, A2, A3, A4, A5, A6, A7, A8, A9) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  84. def validate[A1, A2, A3, A4, A5, A6, A7, A8](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8])(fn: (A1, A2, A3, A4, A5, A6, A7, A8) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  85. def validate[A1, A2, A3, A4, A5, A6, A7](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7])(fn: (A1, A2, A3, A4, A5, A6, A7) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  86. def validate[A1, A2, A3, A4, A5, A6](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6])(fn: (A1, A2, A3, A4, A5, A6) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  87. def validate[A1, A2, A3, A4, A5](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5])(fn: (A1, A2, A3, A4, A5) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  88. def validate[A1, A2, A3, A4](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4])(fn: (A1, A2, A3, A4) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  89. def validate[A1, A2, A3](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3])(fn: (A1, A2, A3) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  90. def validate[A1, A2](o1: ScallopOption[A1], o2: ScallopOption[A2])(fn: (A1, A2) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  91. def validate[A1](o1: ScallopOption[A1])(fn: (A1) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps. Automatically defines co-dependent relationship on these options.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  92. def validateFileDoesNotExist(fileOption: ScallopOption[File]): Unit

    Permalink

    Validate that file does not exists.

    Validate that file does not exists.

    Definition Classes
    ScallopConfBase
  93. def validateFileExists(fileOption: ScallopOption[File]): Unit

    Permalink

    Validate that file exists.

    Validate that file exists.

    Definition Classes
    ScallopConfBase
  94. def validateFileIsDirectory(fileOption: ScallopOption[File]): Unit

    Permalink

    Validate that file argument is directory.

    Validate that file argument is directory.

    Definition Classes
    ScallopConfBase
  95. def validateFileIsFile(fileOption: ScallopOption[File]): Unit

    Permalink

    Validate that file is not a directory.

    Validate that file is not a directory.

    Definition Classes
    ScallopConfBase
  96. def validateFilesDoNotExist(filesOption: ScallopOption[List[File]]): Unit

    Permalink

    Validate that all the files in the arguments to multi-arg option do not exist.

    Validate that all the files in the arguments to multi-arg option do not exist.

    Definition Classes
    ScallopConfBase
  97. def validateFilesExist(filesOption: ScallopOption[List[File]]): Unit

    Permalink

    Validate that all the files in the arguments to multi-arg option exist.

    Validate that all the files in the arguments to multi-arg option exist.

    Definition Classes
    ScallopConfBase
  98. def validateFilesIsDirectory(filesOption: ScallopOption[List[File]]): Unit

    Permalink

    Validate that all the files in the arguments to multi-arg option are directories.

    Validate that all the files in the arguments to multi-arg option are directories.

    Definition Classes
    ScallopConfBase
  99. def validateFilesIsFile(filesOption: ScallopOption[List[File]]): Unit

    Permalink

    Validate that all the files in the arguments to multi-arg option are not directories.

    Validate that all the files in the arguments to multi-arg option are not directories.

    Definition Classes
    ScallopConfBase
  100. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19], o20: ScallopOption[A20], o21: ScallopOption[A21], o22: ScallopOption[A22])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15], Option[A16], Option[A17], Option[A18], Option[A19], Option[A20], Option[A21], Option[A22]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  101. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19], o20: ScallopOption[A20], o21: ScallopOption[A21])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15], Option[A16], Option[A17], Option[A18], Option[A19], Option[A20], Option[A21]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  102. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19], o20: ScallopOption[A20])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15], Option[A16], Option[A17], Option[A18], Option[A19], Option[A20]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  103. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18], o19: ScallopOption[A19])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15], Option[A16], Option[A17], Option[A18], Option[A19]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  104. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17], o18: ScallopOption[A18])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15], Option[A16], Option[A17], Option[A18]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  105. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16], o17: ScallopOption[A17])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15], Option[A16], Option[A17]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  106. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15], o16: ScallopOption[A16])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15], Option[A16]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  107. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14], o15: ScallopOption[A15])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14], Option[A15]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  108. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13], o14: ScallopOption[A14])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13], Option[A14]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  109. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12], o13: ScallopOption[A13])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12], Option[A13]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  110. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11], o12: ScallopOption[A12])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11], Option[A12]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  111. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10], o11: ScallopOption[A11])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10], Option[A11]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  112. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9], o10: ScallopOption[A10])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9], Option[A10]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  113. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8, A9](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8], o9: ScallopOption[A9])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8], Option[A9]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  114. def validateOpt[A1, A2, A3, A4, A5, A6, A7, A8](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7], o8: ScallopOption[A8])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7], Option[A8]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  115. def validateOpt[A1, A2, A3, A4, A5, A6, A7](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6], o7: ScallopOption[A7])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6], Option[A7]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  116. def validateOpt[A1, A2, A3, A4, A5, A6](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5], o6: ScallopOption[A6])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5], Option[A6]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  117. def validateOpt[A1, A2, A3, A4, A5](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4], o5: ScallopOption[A5])(fn: (Option[A1], Option[A2], Option[A3], Option[A4], Option[A5]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  118. def validateOpt[A1, A2, A3, A4](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3], o4: ScallopOption[A4])(fn: (Option[A1], Option[A2], Option[A3], Option[A4]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  119. def validateOpt[A1, A2, A3](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3])(fn: (Option[A1], Option[A2], Option[A3]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  120. def validateOpt[A1, A2](o1: ScallopOption[A1], o2: ScallopOption[A2])(fn: (Option[A1], Option[A2]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  121. def validateOpt[A1](o1: ScallopOption[A1])(fn: (Option[A1]) ⇒ Either[String, Unit]): Unit

    Permalink

    Adds a validation function to this configuration.

    Adds a validation function to this configuration. This function will be run after all other verification steps.

    fn

    Validation function. In case of error, it should return Left with the error message.

    Definition Classes
    ScallopConfValidations
  122. def validatePathDoesNotExist(pathOption: ScallopOption[Path]): Unit

    Permalink

    Validate that path does not point to the existing file.

    Validate that path does not point to the existing file.

    Definition Classes
    ScallopConfBase
  123. def validatePathExists(pathOption: ScallopOption[Path]): Unit

    Permalink

    Validate that path points to the existing file.

    Validate that path points to the existing file.

    Definition Classes
    ScallopConfBase
  124. def validatePathIsDirectory(pathOption: ScallopOption[Path]): Unit

    Permalink

    Validate that path points to a directory.

    Validate that path points to a directory.

    Definition Classes
    ScallopConfBase
  125. def validatePathIsFile(pathOption: ScallopOption[Path]): Unit

    Permalink

    Validate that path points to a file (not directory).

    Validate that path points to a file (not directory).

    Definition Classes
    ScallopConfBase
  126. def validatePathsDoesNotExist(pathsOption: ScallopOption[List[Path]]): Unit

    Permalink

    Validate that path target does not exist.

    Validate that path target does not exist.

    Definition Classes
    ScallopConfBase
  127. def validatePathsExists(pathsOption: ScallopOption[List[Path]]): Unit

    Permalink

    Validate that path target exists.

    Validate that path target exists.

    Definition Classes
    ScallopConfBase
  128. def validatePathsIsDirectory(pathsOption: ScallopOption[List[Path]]): Unit

    Permalink

    Validate that paths targets exist.

    Validate that paths targets exist.

    Definition Classes
    ScallopConfBase
  129. def validatePathsIsFile(pathsOption: ScallopOption[List[Path]]): Unit

    Permalink

    Validate that all paths targets are files (not directories).

    Validate that all paths targets are files (not directories).

    Definition Classes
    ScallopConfBase
  130. var validations: List[() ⇒ Either[String, Unit]]

    Permalink
    Attributes
    protected
    Definition Classes
    ScallopConfValidations
  131. def verify(): Unit

    Permalink

    Verify this configuration - parse the arguments, convert option values, run validations.

    Verify this configuration - parse the arguments, convert option values, run validations. This method MUST be called at the end of all options definitions, attempts to access option values before it is called will result in runtime exception.

    Definition Classes
    ScallopConfBase
  132. def version(v: String): Unit

    Permalink

    Add a version string to option builder.

    Add a version string to option builder.

    v

    Version string.

    Definition Classes
    ScallopConfBase
  133. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  134. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  135. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def mainOptions_=(newMainOptions: ⇒ Seq[ScallopOption[_]]): Unit

    Permalink

    Set options, that are to be printed first in the help printout

    Set options, that are to be printed first in the help printout

    Definition Classes
    ScallopConfBase
    Annotations
    @deprecated
    Deprecated

    (Since version Scallop 4.0.0) Use option groups instead, for example see https://github.com/scallop/scallop/wiki/Help-information-printing#option-groups

Inherited from ScallopConf

Inherited from ScallopConfBase

Inherited from ScallopConfValidations

Inherited from AnyRef

Inherited from Any

Ungrouped