Crate oscript

Source

Re-exports§

pub use clap_complete;
pub use clap;

Modules§

builder
Define Command line arguments
clap_derive
clap_derive
error
Error reporting
parser
Command line argument parser

Macros§

arg
Create an Arg from a usage string.
command
Requires cargo feature flag to be enabled.
value_parser
Select a ValueParser implementation from the intended type

Structs§

Arg
The abstract representation of a command line argument. Used to set all the options and relationships that define a valid argument for the program.
ArgGroup
Family of related arguments.
ArgMatches
Container for parse results.
Command
Build a command-line interface.
Id
Arg or ArgGroup identifier

Enums§

ArgAction
Behavior of arguments when they are encountered while parsing
ColorChoice
Represents the color preferences for program output
ValueHint
Provide shell with hint on how to complete an argument.

Traits§

Args
Parse a set of arguments into a user-defined container.
CommandFactory
Create a Command relevant for a user-defined container.
FromArgMatches
Converts an instance of ArgMatches to a user-defined container.
Parser
Parse command-line arguments into Self.
Subcommand
Parse a sub-command into a user-defined enum.
ValueEnum
Parse arguments into enums.

Type Aliases§

Error
Command Line Argument Parser Error

Attribute Macros§

oscript_main

Derive Macros§

Args
Generates the Args impl.
Parser
Generates the Parser implementation.
Subcommand
Generates the Subcommand impl.
ValueEnum
Generates the ValueEnum impl.