pub struct Args {
pub color: (ColorChoice, ColorChoice),
pub log: Option<String>,
pub log_format: LogFormat,
pub cmd: Command,
}
Fields§
§color: (ColorChoice, ColorChoice)
Set how color is displayed, if at all. By default this is set to
auto
.
Possible values:
-
always
: Always use color, even if stdout/stderr is not a TTY -
ansi
: Always use color, using ANSI escape codes, even if stdout/stderr is not a TTY or does not support them. -
auto
: Use color if stdout/stderr is a TTY, don’t if it is not. -
never
: Never use color, even if stdout/stderr is a TTY.
log: Option<String>
The logging filter to use.
See tracing-subscriber’s EnvFilter type for an explanation of the format:
https://docs.rs/tracing-subscriber/*/tracing_subscriber/filter/struct.EnvFilter.html
log_format: LogFormat
The logging format to use.
Formats available:
-
pretty
: Overly verbose, but good for human consumption. -
compact
: Less verbose, but still readable. -
json
: Intended for machine interpretation. (see https://docs.rs/tracing-subscriber/*/tracing_subscriber/fmt/format/struct.Json.html)
cmd: Command
Trait Implementations§
source§impl CommandFactory for Args
impl CommandFactory for Args
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_update
source§impl FromArgMatches for Args
impl FromArgMatches for Args
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
ArgMatches
to self
.