diff options
author | Brad King <brad.king@kitware.com> | 2013-09-25 15:28:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-15 14:46:54 (GMT) |
commit | 07b80021aad97a4f4243e97576bae4670114a3ca (patch) | |
tree | bd9a72fac640be57ebb98c344d041cbfb163758c /Source/cmDocumentation.cxx | |
parent | 6e68bc22733817783117b20efb8bf0169e9e98c7 (diff) | |
download | CMake-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.cxx | 9 |
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; } } |