diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-03-23 14:09:33 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-28 05:07:08 +0200 |
commit | 89be197b9225c5b0079425b0c0daf72fbe4f8a9c (patch) | |
tree | c5c08314310ba76aa141df8c52603fc5b8674e48 /src/tools/qdoc/main.cpp | |
parent | 419b4abed6e695e8d0ee4dfd302820ab8b98b030 (diff) |
qdoc: Add CLI option to not generate example docs.
Change-Id: I059ae76430adada020d338905b39ba3089c89615
Reviewed-by: Martin Smith <martin.smith@nokia.com>
Diffstat (limited to 'src/tools/qdoc/main.cpp')
-rw-r--r-- | src/tools/qdoc/main.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/tools/qdoc/main.cpp b/src/tools/qdoc/main.cpp index 85e97cdec9..de268e1177 100644 --- a/src/tools/qdoc/main.cpp +++ b/src/tools/qdoc/main.cpp @@ -108,22 +108,24 @@ static void printHelp() { Location::information(tr("Usage: qdoc [options] file1.qdocconf ...\n" "Options:\n" - " -help " - "Display this information and exit\n" - " -version " - "Display version of qdoc and exit\n" " -D<name> " "Define <name> as a macro while parsing sources\n" + " -help " + "Display this information and exit\n" " -highlighting " "Turn on syntax highlighting (makes qdoc run slower)\n" - " -showinternal " - "Include stuff marked internal\n" + " -no-examples " + "Do not generate documentation for examples" " -obsoletelinks " "Report links from obsolete items to non-obsolete items\n" " -outputdir " "Specify output directory, overrides setting in qdocconf file\n" " -outputformat " - "Specify output format, overrides setting in qdocconf file") ); + "Specify output format, overrides setting in qdocconf file" + " -showinternal " + "Include content marked internal\n" + " -version " + "Display version of qdoc and exit\n") ); } /*! @@ -427,6 +429,9 @@ int main(int argc, char **argv) else if (opt == "-showinternal") { showInternal = true; } + else if (opt == "-no-examples") { + Config::generateExamples = false; + } else if (opt == "-obsoletelinks") { obsoleteLinks = true; } |