summaryrefslogtreecommitdiff
path: root/Source/cmDocumentation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-09-23 13:42:49 -0400
committerBrad King <brad.king@kitware.com>2013-10-15 10:46:54 -0400
commit6e68bc22733817783117b20efb8bf0169e9e98c7 (patch)
tree8f3415e6b4caadeafd5ce7594818a5a7d1194829 /Source/cmDocumentation.cxx
parentc9a5f34bd7d35ebf8a4a326481ce22e809de8e4c (diff)
downloadcmake-6e68bc22733817783117b20efb8bf0169e9e98c7.tar.gz
cmake: Add --help-policy-list option
All the other --help-<item> options have a corresponding option --help-<item>-list. Add one for --help-policy.
Diffstat (limited to 'Source/cmDocumentation.cxx')
-rw-r--r--Source/cmDocumentation.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 58ce36bb75..74bdc84332 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -371,6 +371,9 @@ bool cmDocumentation::PrintDocumentation(Type ht, std::ostream& os,
this->PrintDocumentationList(os,i->c_str());
}
return true;
+ case cmDocumentation::PolicyList:
+ this->PrintDocumentationList(os,"Policies");
+ return true;
case cmDocumentation::Full:
return this->PrintDocumentationFull(os);
case cmDocumentation::Modules:
@@ -1256,6 +1259,12 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv,
GET_OPT_ARGUMENT(help.Filename);
help.HelpForm = cmDocumentation::TextForm;
}
+ else if(strcmp(argv[i], "--help-policy-list") == 0)
+ {
+ help.HelpType = cmDocumentation::PolicyList;
+ GET_OPT_ARGUMENT(help.Filename);
+ help.HelpForm = cmDocumentation::TextForm;
+ }
else if(strcmp(argv[i], "--copyright") == 0)
{
help.HelpType = cmDocumentation::Copyright;