argparse.core

Type members

Classlikes

trait Api extends TypesApi with ParsersApi with ReadersApi
case class CommandInfo(name: String, action: Seq[String] => Unit, description: String)
case class Entrypoint[A](name: String, invoke: A => Iterable[String] => Unit)

A wrapper around an application entrypoint.

A wrapper around an application entrypoint.

This is glue code that is typically generated by a macro. It represents an application method that has been lifted into a lambda.

Type Params
A

Type of the class containing the entrypoint.

Value Params
invoke

Run the wrapped method on the given instance and arguments.

name

The name of the entrypoint. This can be used as the name of a subcommand.

Completion logic that is handled by this, scala, program.

Completion logic that is handled by this, scala, program.

case class ParamInfo(isNamed: Boolean, names: Seq[String], argName: Option[String], repeats: Boolean, env: Option[String], description: String, interactiveCompleter: String => Seq[String], standaloneCompleter: BashCompleter)

User-friendly parameter information, used for generating help message

User-friendly parameter information, used for generating help message

object Parser

Low-level parsing functionality. See ArgumentParser for a user-friendly API.

Low-level parsing functionality. See ArgumentParser for a user-friendly API.

trait ReadersApi extends LowPrioReaders

Standalone bash completion. Completion logic that uses bash scripts and is generated in advance. Requires the bash-completion package to be installed.

Standalone bash completion. Completion logic that uses bash scripts and is generated in advance. Requires the bash-completion package to be installed.

object TextUtils
trait TypesApi