abstract class ScallopConfBase extends ScallopConfValidations
- Alphabetic
- By Inheritance
- ScallopConfBase
- ScallopConfValidations
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ScallopConfBase(args: Seq[String] = Nil, commandNameAndAliases: Seq[String] = Nil)
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
var
_guessOptionName: Boolean
- Attributes
- protected
-
def
addSubcommand(conf: Subcommand): Unit
Add subcommand to this config
-
def
addValidation(fn: ⇒ Either[String, Unit]): Unit
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.
-
def
allDefinedOrUndefined(list: ScallopOption[_]*): Unit
In the verify stage, checks that either all or none of the provided options have values defined (either supplied in arguments or got from defaults).
- def appendDefaultToDescription: Boolean
-
def
appendDefaultToDescription_=(v: Boolean): Unit
If set to true, scallop would append auto-generated text about default option value to option descriptions.
- val args: Seq[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
assertVerified(): Unit
Checks that this Conf object is verified.
Checks that this Conf object is verified. If it is not, throws an exception.
-
def
banner(b: String): Unit
Add a banner string to option builder.
Add a banner string to option builder.
- b
Banner string.
- var builder: Scallop
-
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 = false): ScallopOption[String]
Add a new option definition to this config and get a holder for the value.
Add a new option definition to this config and get a holder for the value.
- 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.
- returns
A holder for parsed value
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
codependent(list: ScallopOption[_]*): Unit
In the verify stage, checks that either all or none of the provided options have values supplied in arguments.
In the verify stage, checks that either all or none of the provided options have values supplied in arguments.
- list
list of codependent options
-
val
commandNameAndAliases: Seq[String]
- Attributes
- protected
-
def
conflicts(opt: ScallopOption[_], list: List[ScallopOption[_]]): Unit
In the verify stage, if opt was supplied, checks that all of the options in list are not supplied.
In the verify stage, if opt was supplied, checks that all of the options in list are not supplied.
- opt
option, that conflicts with all of options in list
- list
list of dependencies (all will need to be absent)
-
def
dependsOnAll(opt: ScallopOption[_], list: List[ScallopOption[_]]): Unit
In the verify stage, if opt was supplied, checks that all of the options in list are also supplied.
In the verify stage, if opt was supplied, checks that all of the options in list are also supplied.
- opt
option, that depends on all of options in list
- list
list of dependencies (all will need to be present)
-
def
dependsOnAny(opt: ScallopOption[_], list: List[ScallopOption[_]]): Unit
In the verify stage, if opt was supplied, checks that at least one of the options in list are also supplied.
In the verify stage, if opt was supplied, checks that at least one of the options in list are also supplied.
- opt
option, that depends on any of options in list
- list
list of dependencies (at least one will need to be present)
- def editBuilder(fn: (Scallop) ⇒ Scallop): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
var
errorMessageHandler: (String) ⇒ Unit
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.
- def filteredSummary(blurred: Set[String]): String
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
footer(f: String): Unit
Add a footer string to this builder.
Add a footer string to this builder.
- f
footer string.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def helpFormatter: ScallopHelpFormatter
-
def
helpFormatter_=(formatter: ScallopHelpFormatter): Unit
Set custom help formatter.
-
def
helpWidth(w: Int): Unit
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.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
var
isRootConfig: Boolean
true if this config does not represent a subcommand
true if this config does not represent a subcommand
- Attributes
- protected
-
def
mainOptions: Seq[String]
Options, that are to be printed first in the help printout
-
def
mainOptions_=(newMainOptions: ⇒ Seq[ScallopOption[_]]): Unit
Set options, that are to be printed first in the help printout
-
def
mutuallyExclusive(list: ScallopOption[_]*): Unit
In the verify stage, checks that only one or zero of the provided options have values supplied in arguments.
In the verify stage, checks that only one or zero of the provided options have values supplied in arguments.
- list
list of mutually exclusive options
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
number(name: String = null, descr: String = "", validate: (Long) ⇒ Boolean = (_:Long) => true, required: Boolean = false, default: ⇒ Option[Long] = None, hidden: Boolean = false)(implicit conv: ValueConverter[Long]): ScallopOption[Long]
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.
- 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.
-
def
onError(e: Throwable): Unit
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
-
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 = false)(implicit conv: ValueConverter[A]): ScallopOption[A]
Add a new option definition to this config and get a holder for the value.
Add a new option definition to this config and get a holder for the value.
- 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".
- noshort
If set to true, then this option does not have any short name.
- conv
The converter for this option. Usually found implicitly.
- returns
A holder for parsed value
-
var
parentConfig: ScallopConfBase
Pointer to parent ScallopConf
Pointer to parent ScallopConf
- Attributes
- protected
-
def
printHelp(): Unit
Prints help message (with version, banner, option usage and footer) to stdout.
-
var
printedName: String
This name would be included in output when reporting errors.
-
def
props[A](name: Char = 'D', descr: String = "", keyName: String = "key", valueName: String = "value", hidden: Boolean = false)(implicit conv: ValueConverter[Map[String, A]]): Map[String, A]
Add new property option definition to this config object, and get a handle for option retreiving.
Add new property option definition to this config object, and get a handle for option retreiving.
- name
Char, 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".
- returns
A holder for retreival of the values.
- def propsLong[A](name: String = "Props", descr: String = "", keyName: String = "key", valueName: String = "value", hidden: Boolean = false)(implicit conv: ValueConverter[Map[String, A]]): Map[String, A]
-
def
requireAtLeastOne(list: ScallopOption[_]*): Unit
In the verify stage, checks that at least one option in the list is supplied.
In the verify stage, checks that at least one option in the list is supplied.
- list
list of options (at least one must be present)
-
def
requireOne(list: ScallopOption[_]*): Unit
In the verify stage, checks that one, and only one, option in the list is supplied.
In the verify stage, checks that one, and only one, option in the list is supplied.
- list
list of conflicting options (exactly one must be present)
- def requireSubcommand(): Unit
- def shortSubcommandsHelp(v: Boolean = true): Unit
-
def
subcommand: Option[ScallopConfBase]
Retrieves the choosen subcommand.
-
def
subcommands: List[ScallopConfBase]
Retrieves the list of the chosen nested subcommands.
-
var
subconfigs: Seq[ScallopConfBase]
List of sub-configs of this config.
List of sub-configs of this config.
- Attributes
- protected
-
def
summary: String
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.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def tally(name: String = null, short: Char = '\u0000', descr: String = "", hidden: Boolean = false, noshort: Boolean = false): ScallopOption[Int]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toggle(name: String = null, default: ⇒ Option[Boolean] = None, short: Char = '\u0000', noshort: Boolean = false, prefix: String = "no", descrYes: String = "", descrNo: String = "", hidden: Boolean = false): ScallopOption[Boolean]
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 will ask for 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.
-
def
trailArg[A](name: String = null, descr: String = "", validate: (A) ⇒ Boolean = (_:A) => true, required: Boolean = true, default: ⇒ Option[A] = None, hidden: Boolean = false)(implicit conv: ValueConverter[A]): ScallopOption[A]
Add new trailing argument definition to this config, and get a holder for it's value.
Add new trailing argument definition to this config, and get a holder for it's value.
- 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.
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
def
validate[A1, A2, A3](o1: ScallopOption[A1], o2: ScallopOption[A2], o3: ScallopOption[A3])(fn: (A1, A2, A3) ⇒ Either[String, Unit]): Unit
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
-
def
validate[A1, A2](o1: ScallopOption[A1], o2: ScallopOption[A2])(fn: (A1, A2) ⇒ Either[String, Unit]): Unit
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
-
def
validate[A1](o1: ScallopOption[A1])(fn: (A1) ⇒ Either[String, Unit]): Unit
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
- def validateFileDoesNotExist(fileOption: ScallopOption[File]): Unit
-
def
validateFileExists(fileOption: ScallopOption[File]): Unit
In the verify stage, check that file with supplied name exists.
- def validateFileIsDirectory(fileOption: ScallopOption[File]): Unit
- def validateFileIsFile(fileOption: ScallopOption[File]): Unit
- def validateFilesDoNotExist(filesOption: ScallopOption[List[File]]): Unit
- def validateFilesExist(filesOption: ScallopOption[List[File]]): Unit
- def validateFilesIsDirectory(filesOption: ScallopOption[List[File]]): Unit
- def validateFilesIsFile(filesOption: ScallopOption[List[File]]): Unit
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
def
validateOpt[A1, A2](o1: ScallopOption[A1], o2: ScallopOption[A2])(fn: (Option[A1], Option[A2]) ⇒ Either[String, Unit]): Unit
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
-
def
validateOpt[A1](o1: ScallopOption[A1])(fn: (Option[A1]) ⇒ Either[String, Unit]): Unit
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
- def validatePathDoesNotExist(pathOption: ScallopOption[Path]): Unit
-
def
validatePathExists(pathOption: ScallopOption[Path]): Unit
In the verify stage, check that file with the supplied path exists.
- def validatePathIsDirectory(pathOption: ScallopOption[Path]): Unit
- def validatePathIsFile(pathOption: ScallopOption[Path]): Unit
- def validatePathsDoesNotExist(pathsOption: ScallopOption[List[Path]]): Unit
- def validatePathsExists(pathsOption: ScallopOption[List[Path]]): Unit
- def validatePathsIsDirectory(pathsOption: ScallopOption[List[Path]]): Unit
- def validatePathsIsFile(pathsOption: ScallopOption[List[Path]]): Unit
-
val
validations: List[() ⇒ Either[String, Unit]]
- Attributes
- protected
- Definition Classes
- ScallopConfValidations
- var verified: Boolean
- def verify(): Unit
- def verifyConf(): Unit
-
def
version(v: String): Unit
Add a version string to option builder.
Add a version string to option builder.
- v
Version string.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )