diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e7a11a9..4277e8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,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() { - println!("Hello, world!"); + let args = Cli::from_args(); + println!("{:?}", args); } |