clip/help

Functions for building Help flags.

Types

pub opaque type Help

Functions

pub fn custom(f: fn(ArgInfo) -> String) -> Help

Generate custom help text by providing a function that transforms ArgInfo into a String.

pub fn run(help: Help, arg_info: ArgInfo) -> String

Produce a String from a Help and an ArgInfo. Used internally by clip, not intended for direct usage.

pub fn simple(name: String, description: String) -> Help

Generate help text from a name and description.

Search Document