diff --git a/src/main.rs b/src/main.rs index 234818d..37f9595 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +use clap::{App, Arg}; use std::fs; use std::io; @@ -111,6 +112,18 @@ fn open_file(filename: &str) -> io::Result { } fn main() -> Result<(), Box> { + let matches = App::new("DancingDroids") + .version("0.1.0") + .about("When droids dance togethers") + .arg( + Arg::with_name("file") + .short("f") + .long("file") + .takes_value(true) + .help("Configuration file"), + ) + .get_matches(); + let mut robot_pool: Vec = Vec::new(); let raw_conf = open_file("two_robots.txt")?; Ok(())