This is an archive of the discontinued LLVM Phabricator instance.

Adapt OptTable::PrintHelp change in D51009
ClosedPublic

Authored by MaskRay on Oct 9 2018, 4:45 PM.

Details

Summary

Before, OptTable::PrintHelp append "[options] <inputs>" to its parameter Help. It is more flexible to change its semantic to Usage and let user customize the usage line.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Oct 9 2018, 4:45 PM
MaskRay updated this revision to Diff 168909.Oct 9 2018, 4:47 PM
MaskRay edited the summary of this revision. (Show Details)

description

sbc100 added a comment.Oct 9 2018, 4:51 PM

Since no tests needed updating I guess we not testing much about the output of --help? Should we add some tests?

rupprecht accepted this revision.Oct 9 2018, 5:15 PM
This revision is now accepted and ready to land.Oct 9 2018, 5:15 PM
This revision was automatically updated to reflect the committed changes.
ruiu added a comment.Oct 10 2018, 1:22 PM

Please avoid llvm::formatv because StringRef and Twine work fine as well. I don't expect that the readers of the code memorizes this Python-style format string.

Please avoid llvm::formatv because StringRef and Twine work fine as well. I don't expect that the readers of the code memorizes this Python-style format string.

Sorry, rLLD344212 eliminated another instance of formatv().