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