use eyre::Result; fn main() -> Result<()> { // Parse command-line arguments let args: Vec = std::env::args().collect(); if args.len() != 2 { eprintln!("Usage: {} ", args[0]); return Ok(()); } let id = &args[1]; println!("id: {}", id); let path = refind::find_path(id)?; println!("path: {}", path.display()); Ok(()) }