docs: Add config file docs to '-help' messages#14427
docs: Add config file docs to '-help' messages#14427hebasto wants to merge 1 commit intobitcoin:masterfrom
Conversation
This adds a suitable user documentation about configuration file. The `bitcoin-qt -version` output formatting has been fixed as well.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
promag
left a comment
There was a problem hiding this comment.
I feel this doesn't belong to -help?
| { | ||
| return strprintf(_("All command-line options (except for '%s') may be specified in a configuration file, and all configuration file options may also be specified on the command line. " | ||
| "Command-line options override values set in the configuration file."), | ||
| "-conf") + |
There was a problem hiding this comment.
This is done on purpose to not translate a command line option.
| "\n" + | ||
| "\n" + | ||
| strprintf(_("The configuration file is not automatically created; you can create it using your favorite plain-text editor. " | ||
| "By default, %s will look for a file named '%s' in the %s data directory, but both the data directory and the configuration file path may be changed using the '%s' and '%s' command-line arguments."), |
There was a problem hiding this comment.
Could drop strBitcoinClient and make this By default a file named '%s' in the %s data director...?
There was a problem hiding this comment.
This wording is quoted from BITCOIN.CONF(5).
Why do you think the dropping strBitcoinClient out is preferable?
There was a problem hiding this comment.
IMO it's independent of the binary so could drop it. Beside that manpage is from bitcoind package.
|
@promag
Which other piece of user documentation will be more suitable? |
|
@hebasto in my opinion |
|
I too think this is overkill; like with other programs |
|
Closing in favour of #14497. |
1fb3c16 Add `doc/bitcoin-conf.md` (Hennadii Stepanov) Pull request description: From the IRC: > 2018-10-16T05:35:03 \<wumpus\> if something can be solved by better documentation, please work on documentation! > 2018-10-16T05:35:12 \<wumpus\> don't change the code instead Refs: - #14370 - #14427 - #14494 Based on the BITCOIN.CONF(5) manual page written by Micah Anderson \<[email protected]\> for the Debian system. Tree-SHA512: 16393c9073c027fa1c46f8b59651e60b9a3159b3aeb9b3102040c292d2787f32b1ead5977957ac3ac0759a4bf626650a2325b68ad84320964ac089ffc2d3b4f4
1fb3c16 Add `doc/bitcoin-conf.md` (Hennadii Stepanov) Pull request description: From the IRC: > 2018-10-16T05:35:03 \<wumpus\> if something can be solved by better documentation, please work on documentation! > 2018-10-16T05:35:12 \<wumpus\> don't change the code instead Refs: - bitcoin#14370 - bitcoin#14427 - bitcoin#14494 Based on the BITCOIN.CONF(5) manual page written by Micah Anderson \<[email protected]\> for the Debian system. Tree-SHA512: 16393c9073c027fa1c46f8b59651e60b9a3159b3aeb9b3102040c292d2787f32b1ead5977957ac3ac0759a4bf626650a2325b68ad84320964ac089ffc2d3b4f4
1fb3c16 Add `doc/bitcoin-conf.md` (Hennadii Stepanov) Pull request description: From the IRC: > 2018-10-16T05:35:03 \<wumpus\> if something can be solved by better documentation, please work on documentation! > 2018-10-16T05:35:12 \<wumpus\> don't change the code instead Refs: - bitcoin#14370 - bitcoin#14427 - bitcoin#14494 Based on the BITCOIN.CONF(5) manual page written by Micah Anderson \<[email protected]\> for the Debian system. Tree-SHA512: 16393c9073c027fa1c46f8b59651e60b9a3159b3aeb9b3102040c292d2787f32b1ead5977957ac3ac0759a4bf626650a2325b68ad84320964ac089ffc2d3b4f4
1fb3c16 Add `doc/bitcoin-conf.md` (Hennadii Stepanov) Pull request description: From the IRC: > 2018-10-16T05:35:03 \<wumpus\> if something can be solved by better documentation, please work on documentation! > 2018-10-16T05:35:12 \<wumpus\> don't change the code instead Refs: - bitcoin#14370 - bitcoin#14427 - bitcoin#14494 Based on the BITCOIN.CONF(5) manual page written by Micah Anderson \<[email protected]\> for the Debian system. Tree-SHA512: 16393c9073c027fa1c46f8b59651e60b9a3159b3aeb9b3102040c292d2787f32b1ead5977957ac3ac0759a4bf626650a2325b68ad84320964ac089ffc2d3b4f4
This adds a suitable user documentation about configuration file.
The
bitcoin-qt -versionoutput formatting has been fixed as well.Refs:
utils and libraries: Allow values quoting in config files #14370 (comment)
bitcoin.conf.5 manpage missing #9944
Some small modifications made outputs of
bitcoindandbitcoin-qtthe same:And the output on GUI (menu ->

Help->Command-line options):