Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Commit

Permalink
Add src/bin, bin/bin.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesray1 committed Apr 13, 2018
1 parent 86bfe73 commit d380e1d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/bin/bin.rs
Original file line number Diff line number Diff line change
@@ -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::<Vec<_>>();

let config = cli::args::parse_args(args).unwrap_or_else(|err| {
eprintln!("Problem parsing arguments: {}", err);
process::exit(1);
});

run(config);
}

0 comments on commit d380e1d

Please sign in to comment.