13 lines
206 B
Rust
13 lines
206 B
Rust
|
use std::path::PathBuf;
|
||
|
use structopt::StructOpt;
|
||
|
|
||
|
#[derive(Debug, StructOpt)]
|
||
|
struct Opt {
|
||
|
directory: PathBuf,
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let opt = Opt::from_args();
|
||
|
println!("hello, world! {:?}", opt);
|
||
|
}
|