aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: fe02e42504c19d011917cd8cd8175bb6a7239d20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate ilc_cli;

use ilc_cli::Cli;

static MASTER_HASH: &'static str = include_str!("../.git/refs/heads/master");
static NOTICE: &'static str = include_str!("../NOTICE");

fn main() {
    ilc_cli::main(Cli {
        version: env!("CARGO_PKG_VERSION").into(),
        master_hash: if MASTER_HASH.is_empty() {
            None
        } else {
            Some(MASTER_HASH.trim_right().to_owned())
        },
        notice: NOTICE,
    });
}