rename command line switch to (#269)

This commit is contained in:
Yeastplume 2019-12-03 09:56:43 +00:00 committed by GitHub
parent 0d77282398
commit fe539e716c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -22,10 +22,10 @@ args:
long: account long: account
takes_value: true takes_value: true
default_value: default default_value: default
- data_dir: - top_level_dir:
help: Directory in which to store wallet files help: Top directory in which wallet files are stored (location of 'grin-wallet.toml')
short: dd short: t
long: data_dir long: top_level_dir
takes_value: true takes_value: true
- external: - external:
help: Listen on 0.0.0.0 interface to allow external connections (default is 127.0.0.1) help: Listen on 0.0.0.0 interface to allow external connections (default is 127.0.0.1)

View file

@ -801,7 +801,7 @@ where
wallet_config.api_listen_interface = "0.0.0.0".to_string(); wallet_config.api_listen_interface = "0.0.0.0".to_string();
} }
if let Some(dir) = wallet_args.value_of("data_dir") { if let Some(dir) = wallet_args.value_of("top_level_dir") {
wallet_config.data_file_dir = dir.to_string().clone(); wallet_config.data_file_dir = dir.to_string().clone();
} }