1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#![feature(custom_derive)]
#[macro_use]
extern crate clap;
extern crate toml;
extern crate rustc_serialize;
use clap::App;
pub mod config;
pub mod utils;
pub use utils::*;
fn main() {
let yml = load_yaml!("arguments.yml");
let arguments = App::from_yaml(yml).get_matches();
let arguments = arguments.subcommand_matches("arch").unwrap();
let build = arguments.value_of("build").unwrap().parse::<bool>().unwrap();
let install = arguments.is_present("install");
let syncdeps = arguments.is_present("syncdeps");
let force = arguments.is_present("force");
let mksrcinfo = arguments.is_present("mksrcinfo");
build_arch_package(mksrcinfo, build, install, syncdeps, force);
}