cmDocumentation: Drop version output from usage and text help

Drop the "cmake version ..." line from the top of usage and text help
formats.  Print it only when requested with --version or similar option.
This commit is contained in:
Brad King 2013-09-25 11:28:17 -04:00
parent 6e68bc2273
commit 07b80021aa
1 changed files with 1 additions and 8 deletions

View File

@ -307,13 +307,6 @@ void cmDocumentation::AddDocumentIntroToPrint(const char* intro[2])
bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os, bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os,
const char* docname) const char* docname)
{ {
if ((this->CurrentFormatter->GetForm() != HTMLForm)
&& (this->CurrentFormatter->GetForm() != DocbookForm)
&& (this->CurrentFormatter->GetForm() != ManForm))
{
this->PrintVersion(os);
}
// Handle Document Name. docname==0 disables intro. // Handle Document Name. docname==0 disables intro.
this->SetDocName(""); this->SetDocName("");
if (docname) if (docname)
@ -394,7 +387,7 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os,
case cmDocumentation::Copyright: case cmDocumentation::Copyright:
return this->PrintCopyright(os); return this->PrintCopyright(os);
case cmDocumentation::Version: case cmDocumentation::Version:
return true; return this->PrintVersion(os);
default: return false; default: return false;
} }
} }