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

de.halcony.argparse.parsing.ParsedArgument.scala Maven / Gradle / Ivy

Go to download

A re-imagined implementation of the handy python-argparse functionality for scala

There is a newer version: 2.0.3
Show newest version
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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy