16 lines
245 B
Rust
16 lines
245 B
Rust
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);
|
|
}
|