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

caseapp.core.Arg.scala Maven / Gradle / Ivy

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

import caseapp.{HelpMessage, Name, ValueDescription}

/**
  * Infos about an argument / option an application can accept.
  *
  * @param name: main name of the argument
  * @param extraNames: extra names
  * @param valueDescription: description of its value (optional)
  * @param helpMessage: help message for this argument (optional)
  * @param noHelp: if true, this argument should not appear in help messages
  * @param isFlag: if true, passing an actual value to this argument is optional
  */
final case class Arg(
  name: Name,
  extraNames: Seq[Name] = Nil,
  valueDescription: Option[ValueDescription] = None,
  helpMessage: Option[HelpMessage] = None,
  noHelp: Boolean = false,
  isFlag: Boolean = false
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy