1 2 3 4 5 6 7 8 9
use std::error::Error; pub fn main(args: Vec<String>) -> Result<(), Box<dyn Error>> { if !args.is_empty() { Err("No arguments expected to 'animalia' command")?; } Ok(()) }