diff options
author | Brad King <brad.king@kitware.com> | 2014-04-29 13:58:46 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-04-29 13:58:46 (GMT) |
commit | 1b5fac4695a22f481a2713d8ee3f5841426298cd (patch) | |
tree | 75a715b11c166704958ce7c98e9c4b45c5b1acaf /Source/cmDocumentation.cxx | |
parent | c51d07d4397ceed55c534a036ef81df44b741ff6 (diff) | |
parent | 478356e6d9755e5c09c2c5eff8375241cc0f2ea5 (diff) | |
download | CMake-1b5fac4695a22f481a2713d8ee3f5841426298cd.zip CMake-1b5fac4695a22f481a2713d8ee3f5841426298cd.tar.gz CMake-1b5fac4695a22f481a2713d8ee3f5841426298cd.tar.bz2 |
Merge topic 'doc-full-help'
478356e6 Restore --help-full option to output all help manuals
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r-- | Source/cmDocumentation.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index d421889..71e53f4 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -30,6 +30,8 @@ static const char *cmDocumentationStandardOptions[][2] = "Print usage information and exit."}, {"--version,-version,/V [<f>]", "Print version number and exit."}, + {"--help-full [<f>]", + "Print all help manuals and exit."}, {"--help-manual <man> [<f>]", "Print one help manual and exit."}, {"--help-manual-list [<f>]", @@ -112,6 +114,8 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os) { case cmDocumentation::Usage: return this->PrintDocumentationUsage(os); + case cmDocumentation::Full: + return this->PrintHelpFull(os); case cmDocumentation::OneManual: return this->PrintHelpOneManual(os); case cmDocumentation::OneCommand: @@ -364,9 +368,9 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv, } else if(strcmp(argv[i], "--help-full") == 0) { + help.HelpType = cmDocumentation::Full; GET_OPT_ARGUMENT(help.Filename); - cmSystemTools::Message("Warning: --help-full no longer supported"); - return true; + this->WarnFormFromFilename(help, result); } else if(strcmp(argv[i], "--help-html") == 0) { @@ -678,6 +682,12 @@ bool cmDocumentation::PrintFiles(std::ostream& os, } //---------------------------------------------------------------------------- +bool cmDocumentation::PrintHelpFull(std::ostream& os) +{ + return this->PrintFiles(os, "index"); +} + +//---------------------------------------------------------------------------- bool cmDocumentation::PrintHelpOneManual(std::ostream& os) { std::string mname = this->CurrentArgument; |