diff options
author | Michi Henning <michi@zeroc.com> | 2003-06-13 00:47:51 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-06-13 00:47:51 +0000 |
commit | 36c6eaaa326256475be7808c54a360aa54039adf (patch) | |
tree | 3b8fc5324c9e7e8ba7a13b27872874700d4c99fc /cpp/src/slice2docbook/Main.cpp | |
parent | Fixed VC6 build failure (diff) | |
download | ice-36c6eaaa326256475be7808c54a360aa54039adf.tar.bz2 ice-36c6eaaa326256475be7808c54a360aa54039adf.tar.xz ice-36c6eaaa326256475be7808c54a360aa54039adf.zip |
Added --noindex option to slice2docbook to suppress generation of index
pages in the generated sgml documentation.
Diffstat (limited to 'cpp/src/slice2docbook/Main.cpp')
-rw-r--r-- | cpp/src/slice2docbook/Main.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/src/slice2docbook/Main.cpp b/cpp/src/slice2docbook/Main.cpp index d94c31b40a0..f04f01acedf 100644 --- a/cpp/src/slice2docbook/Main.cpp +++ b/cpp/src/slice2docbook/Main.cpp @@ -35,6 +35,7 @@ usage(const char* n) "--no-globals Don't document the global module.\n" "--chapter Use \"chapter\" instead of \"section\" as\n" " top-level element.\n" + "--noindex Suppress generation of index pages.\n" "-d, --debug Print debug messages.\n" "--ice Permit `Ice' prefix (for building Ice source code only)\n" ; @@ -51,6 +52,7 @@ main(int argc, char* argv[]) bool standAlone = false; bool noGlobals = false; bool chapter = false; + bool noIndex = false; int idx = 1; while(idx < argc) @@ -104,6 +106,15 @@ main(int argc, char* argv[]) } --argc; } + else if(strcmp(argv[idx], "--noindex") == 0) + { + noIndex = true; + for(int i = idx ; i + 1 < argc ; ++i) + { + argv[i] = argv[i + 1]; + } + --argc; + } else if(strcmp(argv[idx], "-h") == 0 || strcmp(argv[idx], "--help") == 0) { usage(argv[0]); @@ -207,7 +218,7 @@ main(int argc, char* argv[]) if(status == EXIT_SUCCESS) { - Gen gen(argv[0], docbook, standAlone, noGlobals, chapter); + Gen gen(argv[0], docbook, standAlone, noGlobals, chapter, noIndex); if(!gen) { p->destroy(); |