doc: Clarify rpcwallet flag url change #14448
pull JBaczuk wants to merge 1 commits into bitcoin:master from JBaczuk:clarify_rpc_wallet_flag changing 1 files +1 −1-
JBaczuk commented at 7:49 pm on October 9, 2018: contributorThis adds clarification to the bitcoin-cli -rpcwallet flag in the help command. This will benefit users who want to utilize this feature without the cli, for example curl. It isn’t readily apparent that this changes the url used in the RPC call.
-
clarify rpcwallet flag url change 0c69ff6171
-
in src/bitcoin-cli.cpp:54 in 0c69ff6171
50@@ -51,7 +51,7 @@ static void SetupCliArgs() 51 gArgs.AddArg("-rpcport=<port>", strprintf("Connect to JSON-RPC on <port> (default: %u, testnet: %u, regtest: %u)", defaultBaseParams->RPCPort(), testnetBaseParams->RPCPort(), regtestBaseParams->RPCPort()), false, OptionsCategory::OPTIONS); 52 gArgs.AddArg("-rpcuser=<user>", "Username for JSON-RPC connections", false, OptionsCategory::OPTIONS); 53 gArgs.AddArg("-rpcwait", "Wait for RPC server to start", false, OptionsCategory::OPTIONS); 54- gArgs.AddArg("-rpcwallet=<walletname>", "Send RPC for non-default wallet on RPC server (needs to exactly match corresponding -wallet option passed to bitcoind)", false, OptionsCategory::OPTIONS); 55+ gArgs.AddArg("-rpcwallet=<walletname>", "Send RPC for non-default wallet on RPC server (needs to exactly match corresponding -wallet option passed to bitcoind). This changes the RPC endpoint used, e.g. http://127.0.0.1:8332/wallet/<walletname>", false, OptionsCategory::OPTIONS);
promag commented at 9:13 pm on October 9, 2018:Is this relevant from thebitcoin-cli
user’s point of view? At least I’d drop thee.g. ...
part here.
JBaczuk commented at 3:11 am on October 10, 2018:I’m not sure the best place for this, but I think an example url would be helpful somewhere. There are curl examples for each command help, but not for any of the flags.
ryanofsky commented at 9:40 pm on November 12, 2018:I disagree with meshcollider and promag, and think this information is useful. Or at least I don’t understand how it harms anyone. I hate documentation that just gives me a handwavy gloss about how an option is intended to be used without saying what it actually does.
Of course it would also be good to document wallet endpoints in markdown. There is some text in the 0.15.0 release notes (“HTTP RPC requests should be send to the…”) that could be moved to JSON-RPC-interface.md. This could be done here or in a separate PR. I actually remember complaining about lack of API documentation when this feature was first added #10849 (comment), and I guess it still doesn’t exist.
laanwj commented at 8:57 am on November 23, 2018:I generally don’t think the option help is the place to put very detailed specifications (just like the release notes are not !), but in this case I kind of like it because it’s short and directly illustrates what it does.promag commented at 9:15 pm on October 9, 2018: memberMaybe improve documentation like createdoc/RPC-interface.md
.fanquake added the label Docs on Oct 9, 2018meshcollider commented at 4:20 am on November 9, 2018: contributorAgree with @promag, IMO this isn’t the right place to put such an example, it would be better in some other documentation not in bitcoin-cli help textJBaczuk commented at 2:25 pm on November 9, 2018: contributorI agree, maybedoc/RPC-interface.md
is a better solution, the only problem is that many users will not know about the new doc. Perhaps the incentive to dig a little is great enough. I wonder if thedoc/RPC-interface.md
would be too difficult to maintain, e.g. the manpages are is generated deterministically.ryanofsky approvedryanofsky commented at 9:42 pm on November 12, 2018: memberutACK 0c69ff61719e9bc4938a9675a36b4170dfca4e6claanwj commented at 8:57 am on November 23, 2018: memberutACK 0c69ff61719e9bc4938a9675a36b4170dfca4e6claanwj renamed this:
clarify rpcwallet flag url change
doc: Clarify rpcwallet flag url change
on Nov 23, 2018laanwj merged this on Nov 23, 2018laanwj closed this on Nov 23, 2018
laanwj referenced this in commit e3a1b74cdf on Nov 23, 2018jasonbcox referenced this in commit 7b2fda0ad0 on Nov 10, 2020PastaPastaPasta referenced this in commit 94cc0761a8 on Jun 27, 2021PastaPastaPasta referenced this in commit be0dd353e3 on Jun 28, 2021PastaPastaPasta referenced this in commit b728b7fdc4 on Jun 29, 2021PastaPastaPasta referenced this in commit 097f696212 on Jul 1, 2021PastaPastaPasta referenced this in commit 71834bb137 on Jul 1, 2021PastaPastaPasta referenced this in commit fb3dd1c5c3 on Jul 1, 2021UdjinM6 referenced this in commit 506ef8087c on Jul 5, 2021MarcoFalke locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 18:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me