diff options
Diffstat (limited to 'cpp/src/slice2html/Main.cpp')
-rw-r--r-- | cpp/src/slice2html/Main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/slice2html/Main.cpp b/cpp/src/slice2html/Main.cpp index 93217351af6..d7480475873 100644 --- a/cpp/src/slice2html/Main.cpp +++ b/cpp/src/slice2html/Main.cpp @@ -34,6 +34,8 @@ usage(const char* n) "--ftr FILe Use the contents of FILE as the footer.\n" "--indexhdr FILE Use the contents of FILE as the header of the index/toc page (default=--hdr).\n" "--indexftr FILE Use the contents of FILE as the footer of the index/toc page (default=--ftr).\n" + "--image-dir DIR Directory containing images for style sheets.\n" + "--logo-url URL Link to URL from logo image (requires --image-dir).\n" "--index NUM Generate subindex if it has at least NUM entries (0 for no index, default=1).\n" "--summary NUM Print a warning if a summary sentence exceeds NUM characters.\n" "-d, --debug Print debug messages.\n" @@ -57,6 +59,8 @@ main(int argc, char* argv[]) opts.addOpt("", "indexhdr", IceUtil::Options::NeedArg); opts.addOpt("", "indexftr", IceUtil::Options::NeedArg); opts.addOpt("", "index", IceUtil::Options::NeedArg, "1"); + opts.addOpt("", "image-dir", IceUtil::Options::NeedArg); + opts.addOpt("", "logo-url", IceUtil::Options::NeedArg); opts.addOpt("", "summary", IceUtil::Options::NeedArg, "0"); opts.addOpt("d", "debug"); opts.addOpt("", "ice"); @@ -131,6 +135,10 @@ main(int argc, char* argv[]) } } + string imageDir = opts.optArg("image-dir"); + + string logoURL = opts.optArg("logo-url"); + string warnSummary = opts.optArg("summary"); unsigned summaryCount; if(!warnSummary.empty()) @@ -198,7 +206,8 @@ main(int argc, char* argv[]) { try { - Slice::generate(p, output, header, footer, indexHeader, indexFooter, indexCount, summaryCount); + Slice::generate(p, output, header, footer, indexHeader, indexFooter, imageDir, logoURL, + indexCount, summaryCount); } catch(const string& err) { |