pub struct Args {Show 13 fields
pub image_path: Option<PathBuf>,
pub cache_size: Option<usize>,
pub zoom: Option<f32>,
pub perf: bool,
pub max_recent: Option<usize>,
pub log_level: Option<String>,
pub zoom_corner: Option<String>,
pub hide_zoom: bool,
pub generate_config: bool,
pub window_width: Option<u32>,
pub window_height: Option<u32>,
pub borderless: bool,
pub hide_menu: bool,
}Fields§
§image_path: Option<PathBuf>Initial image file to open
cache_size: Option<usize>Override the default cache size
zoom: Option<f32>Set the initial zoom level (e.g., 1.0 for 100%)
perf: boolShow the performance monitoring window
max_recent: Option<usize>Override the maximum number of recent files
log_level: Option<String>Set the logging level
zoom_corner: Option<String>Set the corner for zoom level display
hide_zoom: boolToggle zoom level display
generate_config: boolGenerate a default configuration file
window_width: Option<u32>Set initial window width
window_height: Option<u32>Set initial window height
borderless: boolEnable borderless window mode
Hide the menu toolbar
Implementations§
Source§impl Args
impl Args
pub fn parse() -> Self
pub fn get_log_level(&self) -> LogLevel
pub fn handle_config(&self) -> Result<FeriteConfig>
pub fn apply_to_config(&self, config: &mut FeriteConfig)
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
Append to
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>
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 Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more