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

replpp.shaded.scopt.OParserSetup.scala Maven / Gradle / Ivy

There is a newer version: 0.1.98
Show newest version
package replpp.shaded.scopt

trait OParserSetup {
  def renderingMode: RenderingMode
  def errorOnUnknownArgument: Boolean

  /**
   * Show usage text on parse error.
   * Defaults to None, which displays the usage text if
   * --help option is not defined.
   */
  def showUsageOnError: Option[Boolean]

}

abstract class DefaultOParserSetup extends OParserSetup {
  override def renderingMode: RenderingMode = RenderingMode.TwoColumns
  override def errorOnUnknownArgument: Boolean = true
  override def showUsageOnError: Option[Boolean] = None
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy