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

caseapp.core.commandparser.WithHelpCommandParser.scala Maven / Gradle / Ivy

There is a newer version: 2.0.0-M8
Show newest version
package caseapp.core.commandparser

import caseapp.core.parser.Parser
import caseapp.core.help.WithHelp

final case class WithHelpCommandParser[T](parser: CommandParser[T]) extends CommandParser[WithHelp[T]] {

  def get(command: String): Option[Parser[WithHelp[T]]] =
    parser
      .get(command)
      .map(_.withHelp)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy