From: Leonardo Lima Date: Mon, 1 Aug 2022 23:01:26 +0000 (-0300) Subject: Add all `possible_values` to network command option X-Git-Tag: v0.6.0~4^2~2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.FileStoreError.html?a=commitdiff_plain;h=52e8c61392ebbf7895c7da2f5b652972ff4171ed;p=bdk-cli Add all `possible_values` to network command option --- diff --git a/CHANGELOG.md b/CHANGELOG.md index de884f0..99914c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Change rpc `--skip-blocks` option to `--start-time` which specifies time initial sync will start scanning from. - Add new `bdk-cli node []` to control the backend node deployed by `regtest-*` features. - Add an integration testing framework in `src/tests/integration.rs`. This framework uses the `regtest-*` feature to run automated testing with bdk-cli. +- Add possible values for `network` option to improve help message, and fix typo in doc. ## [0.5.0] diff --git a/src/commands.rs b/src/commands.rs index 4d04b08..32665fd 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -49,7 +49,8 @@ pub struct CliOpts { name = "NETWORK", short = "n", long = "network", - default_value = "testnet" + default_value = "testnet", + possible_values = &["bitcoin", "testnet", "signet", "regtest"] )] pub network: Network, /// Sets the wallet data directory. @@ -69,7 +70,7 @@ pub enum CliSubCommand { /// /// These commands can be used to control the backend bitcoin-core node /// launched automatically with the `regtest-*` feature sets. The commands issues - /// bitcoin-cli rpc calls on the demon, in the background. + /// bitcoin-cli rpc calls on the daemon, in the background. /// /// Feel free to open feature-request in /// if you need extra rpc calls not covered in the command list.