From: merge-script Date: Wed, 25 Nov 2026 15:31:52 +0000 (+0400) Subject: Merge bitcoindevkit/bdk-cli#387: docs(readme): document env vars accepted by wallet... X-Git-Url: http://internal-gitweb-vhost/-script/src/consensus/encode/scripts/AddressParseException.Bech32.html?a=commitdiff_plain;p=bdk-cli Merge bitcoindevkit/bdk-cli#387: docs(readme): document env vars accepted by wallet config 3efea551ea98bedbe78d033a091459bbc0d40ea6 docs(readme): document env vars accepted by wallet config (musab1258) Pull request description: ### Description Documentation-only change for the `wallet config` section of the README. Per the discussion on #271, runtime flags and env overrides are no longer planned; `config.toml` stays the single source of truth. This PR: 1. Corrects the usage synopsis: it listed `--rpc-user` and `--rpc-password`, which the CLI does not accept. It now shows `--basic-auth ` and the optional `` file path, notes that the cookie is used instead of the user and password when both are given, and shows `--database-type` as a required option. 2. Adds a table of the environment variables that clap already reads (`SERVER_URL`, `RPC_BASIC_AUTH`, `COOKIE`, etc.), with the option each one sets and where it applies. It also states that flags take precedence over variables and that the values are saved to `config.toml`. Refs #271. ### Notes to the reviewers - No code changes, only `README.md`. - Every variable, flag, and short option in the table is taken from the `env`, `short` and `long` attributes in `src/commands.rs`. The cookie-over-basic-auth statement comes from `src/client.rs`. Two options share `-d`: the global `--datadir` and `wallet config --database-type`. - The new section says plainly that these variables only affect `wallet config`: values are saved to `config.toml`, and later commands read that file. `DATADIR` and `WALLET_NAME` are mentioned below the table instead, because they are not saved. - I haven't added a CHANGELOG entry because the changes are documentation-only. I can still do so if you'd prefer. ### Checklists #### All Submissions: * [x] I've signed all my commits. * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk-cli/blob/master/CONTRIBUTING.md) * [ ] I ran `cargo fmt` and `cargo clippy` before committing. ACKs for top commit: tvpeter: ACK 3efea551ea98bedbe78d033a091459bbc0d40ea6 vadim-anfv: ACK 3efea551ea98bedbe78d033a091459bbc0d40ea6 Tree-SHA512: a7223ca8767c90290b8c3ea1a9652627aeab6b1f5501667d2277cc841ab4234138478a16a5fd6496a688d706194fb9c8610077e2371fae0367a81106689ebc4a --- 5ea0eea7aa51af245a4b6783e6c8815334dc1ac0