parity-zcash/pbtc/main.rs

35 lines
536 B
Rust
Raw Normal View History

2016-09-30 05:44:50 -07:00
//! Parity bitcoin client.
#[macro_use]
extern crate clap;
extern crate bitcrypto as crypto;
extern crate chain;
extern crate keys;
extern crate primitives;
extern crate script;
2016-09-30 05:59:16 -07:00
extern crate net;
extern crate p2p;
2016-10-02 18:01:46 -07:00
mod config;
2016-09-30 05:44:50 -07:00
fn main() {
2016-10-02 18:01:46 -07:00
match run() {
Err(err) => println!("{}", err),
Ok(_) => (),
}
}
fn run() -> Result<(), String> {
2016-09-30 05:44:50 -07:00
let yaml = load_yaml!("cli.yml");
let matches = clap::App::from_yaml(yaml).get_matches();
2016-10-02 18:01:46 -07:00
let cfg = try!(config::parse(&matches));
2016-09-30 07:25:28 -07:00
2016-10-02 18:01:46 -07:00
if let Some(_connect) = cfg.connect {
}
2016-09-30 05:44:50 -07:00
2016-10-02 18:01:46 -07:00
Ok(())
2016-09-30 05:44:50 -07:00
}
2016-10-02 18:01:46 -07:00