All Downloads are FREE. Search and download functionalities are using the official Maven repository.

caseapp.core.help.WithFullHelpCompanion.scala Maven / Gradle / Ivy

There is a newer version: 2.1.0-M29
Show newest version
package caseapp.core.help

import caseapp.core.parser.Parser
import caseapp.{ExtraName, HelpMessage}

abstract class WithFullHelpCompanion {

  implicit def parser[T: Parser]: Parser[WithFullHelp[T]] =
    Parser.nil
      .addAll[WithHelp[T]](using WithHelp.parser[T])
      .add[Boolean](
        "helpFull",
        default = Some(false),
        extraNames = Seq(ExtraName("fullHelp")),
        helpMessage = Some(HelpMessage("Print help message, including hidden options, and exit"))
      )
      .as[WithFullHelp[T]]

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy