logo
Expand description

Tools for composing CLI options.

The main thing in this module is Opts, which compose all the strongly typed CLI options from Parser, Runner and Writer, and provide filtering based on Regex or tag expressions.

The idea behind this is that Parser, Runner and/or Writer may want to introduce their own CLI options to allow tweaking themselves, but we still do want them combine in a single CLI and avoid any boilerplate burden.

If the implementation doesn’t need any CLI options, it may just use the prepared cli::Empty stub.

Structs

Composes two clap::Args derivers together.
Empty CLI options.
Root CLI (command line interface) of a top-level Cucumber executor.

Traits

Parse a set of arguments into a user-defined container.
Indication whether a Writer using CLI options supports colored output.
Parse command-line arguments into Self.

Derive Macros

Generates the Args impl.
Generates the Parser implementation.