summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-09-25 15:28:17 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-15 14:46:54 (GMT)
commit07b80021aad97a4f4243e97576bae4670114a3ca (patch)
treebd9a72fac640be57ebb98c344d041cbfb163758c /Source/cmDocumentation.cxx
parent6e68bc22733817783117b20efb8bf0169e9e98c7 (diff)
downloadCMake-07b80021aad97a4f4243e97576bae4670114a3ca.zip
CMake-07b80021aad97a4f4243e97576bae4670114a3ca.tar.gz
CMake-07b80021aad97a4f4243e97576bae4670114a3ca.tar.bz2
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.
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 74bdc84..9cb99ee 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;
}
}