aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/main.rs
blob: a855efceda9d2f1f18937eb987349f93b88a5d4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
use lib::process_rule_pack;

fn main() {
    let args: Vec<String> = std::env::args().collect();
    if args.len() < 2 {
        eprintln!("Usage: {} <rule_pack>", args[0]);
        std::process::exit(1);
    }
    match process_rule_pack(&args[1]) {
        Ok(result) => println!("Result: {}", result),
        Err(e) => eprintln!("Error: {}", e),
    }
}