diff --git a/src/bin/bin.rs b/src/bin/bin.rs new file mode 100644 index 0000000..8a3a019 --- /dev/null +++ b/src/bin/bin.rs @@ -0,0 +1,18 @@ +extern crate diamond_drops; + +use diamond_drops::cli; +use diamond_drops::run; + +use std::env; +use std::process; + +fn main() { + let args = env::args().skip(1).collect::>(); + + let config = cli::args::parse_args(args).unwrap_or_else(|err| { + eprintln!("Problem parsing arguments: {}", err); + process::exit(1); + }); + + run(config); +} \ No newline at end of file