From 07b80021aad97a4f4243e97576bae4670114a3ca Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 25 Sep 2013 11:28:17 -0400 Subject: [PATCH] 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. --- Source/cmDocumentation.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index 74bdc8433..9cb99ee22 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -307,13 +307,6 @@ void cmDocumentation::AddDocumentIntroToPrint(const char* intro[2]) bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os, 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. this->SetDocName(""); if (docname) @@ -394,7 +387,7 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os, case cmDocumentation::Copyright: return this->PrintCopyright(os); case cmDocumentation::Version: - return true; + return this->PrintVersion(os); default: return false; } }