de.halcony.argparse.parsing.ParsedArgument.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-argparse_2.13 Show documentation
Show all versions of scala-argparse_2.13 Show documentation
A re-imagined implementation of the handy python-argparse functionality for scala
package de.halcony.argparse.parsing
import de.halcony.argparse.ParsingResult
import scala.annotation.nowarn
abstract class ParsedArgument[T](name: String,
description: String,
@nowarn process: String => T)
extends BaseArgument(name, description) {
def parse(args: Iterable[String])(
implicit result: ParsingResult): Iterable[String]
def help(): String
}