diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:01:25 +0000 | 
| commit | d8e91e46262bc44006913e6796843909f1ac7bcd (patch) | |
| tree | 7d0c143d9b38190e0fa0180805389da22cd834c5 /lib/Option/OptTable.cpp | |
| parent | b7eb8e35e481a74962664b63dfb09483b200209a (diff) | |
Notes
Diffstat (limited to 'lib/Option/OptTable.cpp')
| -rw-r--r-- | lib/Option/OptTable.cpp | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Option/OptTable.cpp b/lib/Option/OptTable.cpp index 022b9d5d933e..312ff7808759 100644 --- a/lib/Option/OptTable.cpp +++ b/lib/Option/OptTable.cpp @@ -521,19 +521,17 @@ static const char *getOptionHelpGroup(const OptTable &Opts, OptSpecifier Id) {    return getOptionHelpGroup(Opts, GroupID);  } -void OptTable::PrintHelp(raw_ostream &OS, const char *Name, const char *Title, +void OptTable::PrintHelp(raw_ostream &OS, const char *Usage, const char *Title,                           bool ShowHidden, bool ShowAllAliases) const { -  PrintHelp(OS, Name, Title, /*Include*/ 0, /*Exclude*/ +  PrintHelp(OS, Usage, Title, /*Include*/ 0, /*Exclude*/              (ShowHidden ? 0 : HelpHidden), ShowAllAliases);  } -void OptTable::PrintHelp(raw_ostream &OS, const char *Name, const char *Title, +void OptTable::PrintHelp(raw_ostream &OS, const char *Usage, const char *Title,                           unsigned FlagsToInclude, unsigned FlagsToExclude,                           bool ShowAllAliases) const { -  OS << "OVERVIEW: " << Title << "\n"; -  OS << '\n'; -  OS << "USAGE: " << Name << " [options] <inputs>\n"; -  OS << '\n'; +  OS << "OVERVIEW: " << Title << "\n\n"; +  OS << "USAGE: " << Usage << "\n\n";    // Render help text into a map of group-name to a list of (option, help)    // pairs.  | 
