diff options
author | Ken Martin <ken.martin@kitware.com> | 2007-10-24 15:36:47 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2007-10-24 15:36:47 (GMT) |
commit | c2f0aac146f6b990940240891b959dc1f394e80c (patch) | |
tree | eeda2906ff2af93817dd86f95648e78d90fde45d /Source/cmakemain.cxx | |
parent | 328615716c97531b7ccdb2b35679fe828ed27e0c (diff) | |
download | CMake-c2f0aac146f6b990940240891b959dc1f394e80c.zip CMake-c2f0aac146f6b990940240891b959dc1f394e80c.tar.gz CMake-c2f0aac146f6b990940240891b959dc1f394e80c.tar.bz2 |
ENH: some more cleanup, fixes, and patch for HTML output
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index e676430..9e81a42 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -146,7 +146,7 @@ static const char * cmDocumentationOptions[][3] = "page, HTML and plain text."}, {"--help-property prop [file]", "Print help for a single property and exit.", - "Full documentation specific to the given module is displayed." + "Full documentation specific to the given property is displayed." "If a file is specified, the documentation is written into and the output " "format is determined depending on the filename suffix. Supported are man " "page, HTML and plain text."}, @@ -162,6 +162,24 @@ static const char * cmDocumentationOptions[][3] = "If a file is specified, the documentation is written into and the output " "format is determined depending on the filename suffix. Supported are man " "page, HTML and plain text."}, + {"--help-variable var [file]", + "Print help for a single variable and exit.", + "Full documentation specific to the given variable is displayed." + "If a file is specified, the documentation is written into and the output " + "format is determined depending on the filename suffix. Supported are man " + "page, HTML and plain text."}, + {"--help-Variable-list [file]", "List documented variables and exit.", + "The list contains all variables for which help may be obtained by using " + "the --help-variable argument followed by a variable name. If a file is " + "specified, the help is written into it." + "If a file is specified, the documentation is written into and the output " + "format is determined depending on the filename suffix. Supported are man " + "page, HTML and plain text."}, + {"--help-variables [file]", "Print help for all variables and exit.", + "Full documentation for all variables is displayed." + "If a file is specified, the documentation is written into and the output " + "format is determined depending on the filename suffix. Supported are man " + "page, HTML and plain text."}, {0,0,0} }; @@ -318,6 +336,12 @@ int do_cmake(int ac, char** av) doc.AppendSection("Compatibility Commands",compatCommands); doc.SetSections(propDocs); + cmDocumentationEntry e; + e.Brief = + "variables defined by cmake, that give information about the project, " + "and cmake"; + doc.PrependSection("Variables that Provide Information",e); + doc.SetSeeAlsoList(cmDocumentationSeeAlso); int result = doc.PrintRequestedDocumentation(std::cout)? 0:1; |