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();