use std::env; use csvtoron::to_ron; fn main() -> Result<(), String> { let args: Vec = env::args().collect(); if args.len() != 2 { return Err("Usage is : ./csvtoron ".to_string()); } let filename = args.get(1).unwrap(); to_ron(filename) }