pub struct Args {
pub target: Option<String>,
pub feedback_level: FeedbackLevel,
pub disable_execution: bool,
pub debugger: bool,
pub libs_path: String,
pub disable_type_checking: bool,
pub output: Option<Option<String>>,
pub silent: bool,
pub pedantic: bool,
pub warnings_are_errors: bool,
}Fields§
§target: Option<String>File to assemble or execute.
If not given it will search for ./Main.sbl in the current working directory.
If it’s a folder it will look for ./folder/Main.sbl
If a file with a .SBL extension is given it will be assembled.
.BIN or .SBLX files will be executed
feedback_level: FeedbackLevelLevel of assembler and runtime feedback. DEBUG is used for assembler debugging!
When at DEBUG level a dump.sbl file is generated during the assembly process
disable_execution: boolDisable program execution, files will still be assembled and possibly written to disk
debugger: boolRun program with the debugger
libs_path: StringFolder that stores libraries
disable_type_checking: boolDisables type checking for macro arguments. Not recommended
output: Option<Option<String>>Output file for assembled subleq, if not given no output be will generated.
If given the file type can be:
-
Nothing in which case a .bin file with the module name will be generated
-
BIN or SBLX which will output with that file extension and the module name
-
A file name with extension
silent: boolSuppresses all assembler output except for errors, overrides –feedback-level. Program output will still be shown.
pedantic: boolShows more notes and warning. Recommended for release builds
warnings_are_errors: boolTreat warnings as errors
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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 CommandFactory for Args
impl CommandFactory for Args
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.