toggle

harness.cli.Parser$.toggle$
object toggle

Parses a boolean based on prefix of baseName:

  • --[dont-]run : --dont-run [false] / --run [true]
  • --[do/dont]-run : --do-run [true] / --dont-run [false]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
toggle.type

Members list

Value members

Concrete methods

def apply(longParam: LongToggle, shortParam: Optional[ShortToggle], helpHint: List[String], helpExtraHint: List[String]): Parser[Boolean]
def prefixBoth(truePrefix: LongName, falsePrefix: LongName, baseName: LongName, shortParam: Optional[ShortToggle], helpHint: List[String], helpExtraHint: List[String]): Parser[Boolean]
def prefixFalse(falsePrefix: LongName, baseName: LongName, shortParam: Optional[ShortToggle], helpHint: List[String], helpExtraHint: List[String]): Parser[Boolean]
def prefixTrue(truePrefix: LongName, baseName: LongName, shortParam: Optional[ShortToggle], helpHint: List[String], helpExtraHint: List[String]): Parser[Boolean]