aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 4277e8c6857e2b1dc6acc8938c3640eeb61bc974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use structopt::StructOpt;

#[derive(Debug, StructOpt)]
struct Cli {
    /// The pattern to look for
    pattern: String,
    /// The path to the file to read
    #[structopt(parse(from_os_str))]
    path: std::path::PathBuf,
}

fn main() {
    let args = Cli::from_args();
    println!("{:?}", args);
}