Fix default options.

This commit is contained in:
Gav Wood 2016-02-04 00:48:36 +01:00
parent a0c2c6e71d
commit f2b8d6336a

View File

@ -37,10 +37,10 @@ Usage:
Options:
-l --logging LOGGING Specify the logging level.
-j --jsonrpc Enable the JSON-RPC API sever.
--jsonrpc-url URL Specify URL for JSON-RPC API server (default: 127.0.0.1:8545).
--jsonrpc-url URL Specify URL for JSON-RPC API server [default: 127.0.0.1:8545].
--cache-pref-size BYTES Specify the prefered size of the blockchain cache in bytes (default: 16384).
--cache-max-size BYTES Specify the maximum size of the blockchain cache in bytes (default: 262144).
--cache-pref-size BYTES Specify the prefered size of the blockchain cache in bytes [default: 16384].
--cache-max-size BYTES Specify the maximum size of the blockchain cache in bytes [default: 262144].
-h --help Show this screen.
", flag_cache_pref_size: usize, flag_cache_max_size: usize);
@ -78,6 +78,8 @@ fn setup_rpc_server(_client: Arc<Client>, _sync: Arc<EthSync>, _url: &str) {
fn main() {
let args: Args = Args::docopt().decode().unwrap_or_else(|e| e.exit());
println!("{:?}", args);
setup_log(&args.flag_logging);
let spec = ethereum::new_frontier();