pub fn run(&mut self) -> Result<()> {
        let mut run = || -> Result<()> {
            // Write the help or version message
            if self.options.help {
                return self.help();
            }
            if self.options.version {
                return self.version();
            }

            // Validate the options
            self.validate()?;

            // Handle the paths
            return self.change();
        };

        match run() {
            Ok(val) => {
                return Ok(val);
            },
            Err(err) => {
                writeln!(self.stderr, "Error: {}", err)?;
                return Err(err);
            },
        }
    }
/// Runs this program and writes all errors.
Runs this program and writes all errors.
Runs this program and writes all errors .
pub fn run(&mut self) -> Result<()> {
        let mut run = || -> Result<()> {
            // Write the help or version message
            if self.options.help {
                return self.help();
            }
            if self.options.version {
                return self.version();
            }
            // Validate the options
            self.validate()?;
            // Handle the paths
            return self.change();
        };
        match run() {
            Ok(val) => {
                return Ok(val);
            },
            Err(err) => {
                writeln!(self.stderr, "Error: {}", err)?;
                return Err(err);
            },
        }
    }
pub fn run ( & mut self ) -> Result < ( ) > { let mut run = | | -> Result < ( ) > { // Write the help or version message if self . options . help { return self . help ( ) ; } if self . options . version { return self . version ( ) ; } // Validate the options self . validate ( ) ? ; // Handle the paths return self . change ( ) ; } ; match run ( ) { Ok ( val ) => { return Ok ( val ) ; } , Err ( err ) => { writeln ! ( self stderr " " err ) ? ; return Err ( err ) ; } , } }
Runs this program and writes all errors.
Runs this program and writes all errors .
&mut self