Module embuild::cli

source ·
Expand description

CLI argument manipulation utilities.

Structs

An command line argument definition of how to parse and format a specific argument.
An iterator that iterates over the default and all aliases of an ArgDef.
Argument options for parsing and formatting arguments.
An iterator that takes an input string and splits it into the words using the same syntax as the POSIX shell.
An iterator that parses a command as windows command-line arguments and returns them as Strings.

Enums

The type of a command line argument.
The error when parsing an command line argument.

Traits

An extension trait for parsing a collection of ArgDefs from a Vec of argument Strings.

Functions

Convenience function that consumes an iterable of words and turns it into a single string, quoting words when necessary. Consecutive words will be separated by a single space.
Given a single word, return a string suitable to encode it as a shell argument.

Type Definitions

The result of parsing an command line argument.