use std::path::PathBuf; use structopt::StructOpt; mod commands; #[derive(Debug, StructOpt)] pub struct Opt { #[structopt(parse(from_os_str))] file: PathBuf, } fn main() { let opt = Opt::from_args(); println!("{:#?}", opt); }