pub fn from_args<'a>(&'a mut self, args: &Args) -> &'a mut Self {
        if let Some(mut config) = self.config.take() {
            if args.full_screen {
                config.screen.full_mode();
            }

            if args.inline {
                config.screen.inline_mode();
                let given = args.lines.unwrap_or(6);
                config.screen.set_height(given);
            }

            if let Some(q) = &args.search {
                let q = q.to_string();
                config.initial_query = Some(q);
            }

            self.config = Some(config);
        }

        self
    }
/// Set configuration options from command line args
Set configuration options from command line args
Set configuration options from command line args
pub fn from_args<'a>(&'a mut self, args: &Args) -> &'a mut Self {
        if let Some(mut config) = self.config.take() {
            if args.full_screen {
                config.screen.full_mode();
            }
            if args.inline {
                config.screen.inline_mode();
                let given = args.lines.unwrap_or(6);
                config.screen.set_height(given);
            }
            if let Some(q) = &args.search {
                let q = q.to_string();
                config.initial_query = Some(q);
            }
            self.config = Some(config);
        }
        self
    }
pub fn from_args < ' a > ( & ' a mut self , args : & Args ) -> & ' a mut Self { if let Some ( mut config ) = self . config . take ( ) { if args . full_screen { config . screen . full_mode ( ) ; } if args . inline { config . screen . inline_mode ( ) ; let given = args . lines . unwrap_or ( 6 ) ; config . screen . set_height ( given ) ; } if let Some ( q ) = & args . search { let q = q . to_string ( ) ; config . initial_query = Some ( q ) ; } self . config = Some ( config ) ; } self }
Set configuration options from command line args
Set configuration options from command line args
&'a mut self
args
&Args