1 2 3 4 5 6 7 8 9 10 11
use structopt::StructOpt; #[derive(StructOpt, Debug)] pub struct TestOpts { #[structopt(short = "f", long = "file")] file: String, } pub fn run(_opts: TestOpts) { eprintln!("test command is not implemented yet"); }