summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-09-25 11:28:17 -0400
committerBrad King <brad.king@kitware.com>2013-10-15 10:46:54 -0400
commit07b80021aad97a4f4243e97576bae4670114a3ca (patch)
treebd9a72fac640be57ebb98c344d041cbfb163758c
parent6e68bc22733817783117b20efb8bf0169e9e98c7 (diff)
downloadcmake-07b80021aad97a4f4243e97576bae4670114a3ca.tar.gz
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.
-rw-r--r--Source/cmDocumentation.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 74bdc84332..9cb99ee221 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;
}
}