]> Untitled Git - bdk-cli/commitdiff
Add all `possible_values` to network command option
authorLeonardo Lima <oleonardolima@users.noreply.github.com>
Mon, 1 Aug 2022 23:01:26 +0000 (20:01 -0300)
committerrajarshimaitra <rajarshi149@gmail.com>
Mon, 12 Sep 2022 04:24:21 +0000 (09:54 +0530)
CHANGELOG.md
src/commands.rs

index de884f08e380f7d2bea243142bf7330c81c12e8a..99914c522cb0cb565d4bf33d2b2c7f099d0c1776 100644 (file)
@@ -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 <command> [<args>]` 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]
 
index 4d04b086d3f384e28bf233e6c0845b433ca240ec..32665fd439d544b1dd528aa395d766a4a75487e0 100644 (file)
@@ -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 <https://github.com/bitcoindevkit/bdk-cli>
     /// if you need extra rpc calls not covered in the command list.