/// Executes the specified command with the given arguments.
///
/// Returns `true` if the debugger should quit.
Executes the specified command with the given arguments.
Returns `true` if the debugger should quit.
Executes the specified command with the given arguments . Returns ` true ` if the debugger should quit .
pub fn execute_command(&mut self, command: &str, args: &[&str]) -> Result<bool> {
        match command {
            "quit" => Ok(true),
            "help" => {
                println!("{}", HELP);
                Ok(false)
            }
            "dump" => self.dump(args),
            "run" => self.run(args),
            "status" => self.status(args),
            "step" => self.step(args),
            s => Err(ErrorKind::Debug(format!("unknown command '{}'", s)).into()),
        }
    }
pub fn execute_command ( & mut self , command : & str , args : & [ & str ] ) -> Result < bool > { match command { " " => Ok ( true ) , " " => { println ! ( " " HELP ) ; Ok ( false ) } " " => self . dump ( args ) , " " => self . run ( args ) , " " => self . status ( args ) , " " => self . step ( args ) , s => Err ( ErrorKind :: Debug ( format ! ( " " s ) ) . into ( ) ) , } }
Executes the specified command with the given arguments.
Executes the specified command with the given arguments .
&mut self
command
&str
args
&[&str]