From f2b8d6336af2d174c5b91cdd1a0003b33bd69e20 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 4 Feb 2016 00:48:36 +0100 Subject: [PATCH 1/2] Fix default options. --- parity/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index fe567e2a0..8c563126c 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -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, _sync: Arc, _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(); From 8e892fe60eaa6b3a9c308cd7e54b4bf06a8cac8b Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 4 Feb 2016 00:48:51 +0100 Subject: [PATCH 2/2] Remove println for options. --- parity/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index 8c563126c..bc492277a 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -78,8 +78,6 @@ fn setup_rpc_server(_client: Arc, _sync: Arc, _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();