doc: fixed bitcoin-cli --help output to compatibility with help2man #13879

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:bitcoin-cli-help2man changing 1 files +2 −2
  1. hebasto commented at 9:45 PM on August 4, 2018: member

    Currently help2man produces some unexpected commands in the manual page file bitcoin-cli.1:

    • .TP + .IP for 'Usage' in DESCRIPTION section. Should be all .TP;
    • .TP + .IP for '-stdinrpcpass' in OPTIONS section. Should be only an .IP
  2. doc: fixed bitcoin-cli --help output to compatibility with help2man
    Currently help2man produces some unexpected commands in manual page file bitcoin-cli.1:
    1) .TP + .IP for 'Usage' in DESCRIPTION section. Should be all .TP;
    2) .TP + .IP for '-stdinrpcpass' in OPTIONS section. Should be only an .IP
    b86f7ee020
  3. DrahtBot commented at 12:13 AM on August 5, 2018: member

    <!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:

    • #13872 ([docs] Reformat -help output for help2man by real-or-random)
    • #13716 (bitcoin-cli: -stdinwalletpassphrase and non-echo stdin passwords by kallewoof)

    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.

  4. in src/bitcoin-cli.cpp:111 in b86f7ee020
     107 | @@ -108,7 +108,7 @@ static int AppInitRPC(int argc, char* argv[])
     108 |          if (!gArgs.IsArgSet("-version")) {
     109 |              strUsage += "\nUsage:\n"
     110 |                    "  bitcoin-cli [options] <command> [params]  " + strprintf("Send command to %s", PACKAGE_NAME) + "\n" +
     111 | -                  "  bitcoin-cli [options] -named <command> [name=value] ... " + strprintf("Send command to %s (with named arguments)", PACKAGE_NAME) + "\n" +
     112 | +                  "  bitcoin-cli [options] -named <command> [name=value]...  " + strprintf("Send command to %s (with named arguments)", PACKAGE_NAME) + "\n" +
    


    real-or-random commented at 12:31 AM on August 5, 2018:

    I think the solution in #13872 is better for help2man.


    hebasto commented at 9:06 AM on August 5, 2018:

    #13872 introduces SYNOPSIS section to the all bitcoind, bitcoin-qt and utilities manual pages. I think that is a good move. And, as a side effect, #13872 fixes one of two bugs in bitcoin-cli --help output.

    #13879 just fixes all found bugs in bitcoin-cli --help output and is safe for the whole code.

  5. fanquake added the label Docs on Aug 5, 2018
  6. laanwj commented at 8:36 AM on August 7, 2018: member

    needs rebase (if still necessary) after #13872

  7. DrahtBot commented at 10:28 AM on August 7, 2018: member

    <!--cf906140f33d8803c4a75a2196329ecb-->Needs rebase

  8. DrahtBot added the label Needs rebase on Aug 7, 2018
  9. hebasto commented at 6:56 PM on August 7, 2018: member

    Pull request after rebase: #13905

  10. hebasto closed this on Aug 7, 2018

  11. fanquake locked this on Aug 8, 2018
  12. hebasto deleted the branch on Aug 13, 2018
  13. fanquake removed the label Needs rebase on Aug 26, 2018

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: 2026-04-22 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me