tag-find: experiment in rust, go and joker languages
[experiments.git] / tag_find / tag_find_rust / src / main.rs
1 extern crate tag_find;
2
3 use std::env;
4 use std::process;
5
6 use tag_find::Config;
7
8 /// Searches all files in a directory for a tag name
9 fn main() {
10 let args: Vec<String> = env::args().collect();
11
12 let config = Config::new(&args).unwrap_or_else(|err| {
13 eprintln!("Problem parsing arguments: {}", err);
14 process::exit(1);
15 });
16
17 if let Err(e) = tag_find::run(config) {
18 eprintln!("Application error: {}", e);
19 process::exit(1);
20 }
21 }
22
23