outil/arg

Functions

pub fn bool(cmd: Command(a), name: String, continue: fn(
    fn(List(String)) -> Result(Bool, Error),
    Command(a),
  ) -> Command(a)) -> Command(a)

Add a positional bool argument to the command before continuing.

pub fn float(cmd: Command(a), name: String, continue: fn(
    fn(List(String)) -> Result(Float, Error),
    Command(a),
  ) -> Command(a)) -> Command(a)

Add a positional float argument to the command before continuing.

pub fn int(cmd: Command(a), name: String, continue: fn(
    fn(List(String)) -> Result(Int, Error),
    Command(a),
  ) -> Command(a)) -> Command(a)

Add a positional int argument to the command before continuing.

pub fn string(cmd: Command(a), name: String, continue: fn(
    fn(List(String)) -> Result(String, Error),
    Command(a),
  ) -> Command(a)) -> Command(a)

Add a positional string argument to the command before continuing.

Search Document