Page MenuHomePhabricator

[docs] Reformat -help output for help2man
ClosedPublic

Authored by deadalnix on Tue, May 14, 17:15.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC23b59f2259d5: [docs] Reformat -help output for help2man
Summary

This commit slightly changes the format of the "Usage" strings in CLI
-help messages to meet the expection of the help2man tool, which we
use to generate man pages. On the way, we remove a few calls to
strprintf(), which became superficial after commit 32fbfda.

This is a backport of Core PR13872

Test Plan
make check
BUILDDIR=~/bitcoin-abc/build ../contrib/devtools/gen-manpages.sh

Make sure the new generated manpages do make sense.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix created this revision.Tue, May 14, 17:15
Herald added a reviewer: Restricted Project. · View Herald TranscriptTue, May 14, 17:15
Fabien requested changes to this revision.Thu, May 16, 13:31
Fabien added a subscriber: Fabien.

The test plan should include -help and man pages check

This revision now requires changes to proceed.Thu, May 16, 13:31
deadalnix requested review of this revision.Thu, May 16, 15:46
deadalnix edited the test plan for this revision. (Show Details)

Updated test plan

deadalnix edited the test plan for this revision. (Show Details)Thu, May 16, 15:47
Fabien accepted this revision.Thu, May 16, 16:15
This revision is now accepted and ready to land.Thu, May 16, 16:15
This revision was automatically updated to reflect the committed changes.