diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-05-10 17:15:51 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-05-10 17:15:51 +0000 |
commit | 2e24e19cacacd4eea346b914124ffc3acadbd72e (patch) | |
tree | 5d2ffeea5338af801b9c96c9755ae7753d0a16c6 /include | |
parent | 3a0d00eef992daafecc4d96fa716f851d8c9059a (diff) | |
download | external_llvm-2e24e19cacacd4eea346b914124ffc3acadbd72e.zip external_llvm-2e24e19cacacd4eea346b914124ffc3acadbd72e.tar.gz external_llvm-2e24e19cacacd4eea346b914124ffc3acadbd72e.tar.bz2 |
Better output for long help strings for command-line options.
Summary:
This patch allows using \n inside long help strings for command-line
options, so that all lines are equally indented. This is not a perfect solution,
as we don't (and probably don't want to) know about terminal width, but it
allows to format long help strings somehow readable without manually padding
them with spaces. A motivating example is -help output from clang-format (source
code in tools/clang-format/ClangFormat.cpp, see cl options offset, length,
style, and dump-config).
Reviewers: atrick, alexfh
Reviewed By: alexfh
CC: llvm-commits, rafael
Differential Revision: http://llvm-reviews.chandlerc.com/D779
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions