pub struct Options {
pub print_events: bool,
pub ref_test: bool,
pub embed: Option<String>,
pub config_file: Option<PathBuf>,
pub socket: Option<PathBuf>,
quiet: u8,
verbose: u8,
option: Vec<String>,
pub config_options: Value,
pub window_options: WindowOptions,
pub subcommands: Option<Subcommands>,
}
Expand description
CLI options for the main Alacritty executable.
Fields§
§print_events: bool
Print all events to stdout.
ref_test: bool
Generates ref test.
embed: Option<String>
X11 window ID to embed Alacritty within (decimal or hexadecimal with “0x” prefix).
config_file: Option<PathBuf>
Specify alternative configuration file [default: $XDG_CONFIG_HOME/alacritty/alacritty.yml].
socket: Option<PathBuf>
Path for IPC socket creation.
quiet: u8
Reduces the level of verbosity (the min level is -qq).
verbose: u8
Increases the level of verbosity (the max level is -vvv).
option: Vec<String>
Override configuration file options [example: cursor.style=Beam].
config_options: Value
CLI options for config overrides.
window_options: WindowOptions
Options which can be passed via IPC.
subcommands: Option<Subcommands>
Subcommand passed to the CLI.
Implementations§
Trait Implementations§
source§impl CommandFactory for Options
impl CommandFactory for Options
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_update
source§impl FromArgMatches for Options
impl FromArgMatches for Options
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>
Assign values from
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>
Assign values from
ArgMatches
to self
.source§impl Parser for Options
impl Parser for Options
source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.