pub struct CompilerOptions {
pub other: Vec<String>,
}Expand description
Additional arguments and an optional input file for a Compiler.
Default creates an empty argument list, selecting the program’s stdin-input
form. The pattern defines no standard model or format options. Any such
options supplied through other are extensions requiring
support from the selected program; this type does not validate that support.
§Examples
Select a named input file as one literal argument, retaining stdout output:
use asimov_patterns::CompilerOptions;
let options = CompilerOptions::builder()
.other("--")
.other("request with spaces.txt")
.build();Fields§
§other: Vec<String>Literal command-line arguments, including an optional input-file operand.
The process wrapper forwards these in order and generates no other
arguments. Put extension options before the input file. Each string is
one argument, without shell expansion; see crate::programs. With a
named file, configure the wrapper’s stream input as ignored.
Implementations§
Source§impl CompilerOptions
impl CompilerOptions
Sourcepub fn builder() -> CompilerOptionsBuilder
pub fn builder() -> CompilerOptionsBuilder
Create an instance of CompilerOptions using the builder syntax
Trait Implementations§
Source§impl Args for CompilerOptions
Available on crate feature clap only.
impl Args for CompilerOptions
clap only.Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CompilerOptions
impl Clone for CompilerOptions
Source§impl Debug for CompilerOptions
impl Debug for CompilerOptions
Source§impl Default for CompilerOptions
impl Default for CompilerOptions
impl Eq for CompilerOptions
Source§impl FromArgMatches for CompilerOptions
Available on crate feature clap only.
impl FromArgMatches for CompilerOptions
clap only.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.