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

scala.cli.commands.HelpCmd.scala Maven / Gradle / Ivy

The newest version!
package scala.cli.commands

import caseapp.*
import caseapp.core.help.RuntimeCommandsHelp

import scala.build.Logger
import scala.cli.commands.shared.{HelpOptions, ScalaCliHelp}

class HelpCmd(actualHelp: => RuntimeCommandsHelp)
    extends ScalaCommandWithCustomHelp[HelpOptions](actualHelp) {
  override def names                   = List(List("help"))
  override def scalaSpecificationLevel = SpecificationLevel.IMPLEMENTATION

  override def runCommand(options: HelpOptions, args: RemainingArgs, logger: Logger): Unit =
    customHelpAsked(showHidden = false)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy