Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #633 from ethcore/fixing_docopt
Browse files Browse the repository at this point in the history
Fixing CLI parameters
  • Loading branch information
arkpar committed Mar 8, 2016
2 parents 9780897 + b2fc077 commit 798c348
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions parity/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ Protocol Options:
--networkid INDEX Override the network identifier from the chain we are on.
--archive Client should not prune the state/storage trie.
-d --datadir PATH Specify the database & configuration directory path [default: $HOME/.parity]
--keys-path PATH Specify the path for JSON key files to be found [default: $HOME/.web3/keys]
--identity NAME Specify your node's name.
Networking Options:
Expand Down Expand Up @@ -113,7 +114,7 @@ Memory Footprint Options:
--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].
--queue-max-size BYTES Specify the maximum size of memory to use for block queue [default: 52428800].
--cache MEGABYTES Set total amount of cache to use for the entire system, mutually exclusive with
--cache MEGABYTES Set total amount of cache to use for the entire system, mutually exclusive with
other cache options (geth-compatible).
Miscellaneous Options:
Expand All @@ -129,7 +130,7 @@ struct Args {
arg_enode: Vec<String>,
flag_chain: String,
flag_testnet: bool,
flag_db_path: String,
flag_datadir: String,
flag_networkid: Option<String>,
flag_identity: String,
flag_cache: Option<usize>,
Expand Down Expand Up @@ -238,7 +239,7 @@ impl Configuration {
}

fn path(&self) -> String {
self.args.flag_db_path.replace("$HOME", env::home_dir().unwrap().to_str().unwrap())
self.args.flag_datadir.replace("$HOME", env::home_dir().unwrap().to_str().unwrap())
}

fn author(&self) -> Address {
Expand Down

0 comments on commit 798c348

Please sign in to comment.