summaryrefslogtreecommitdiff
path: root/cpp/src/slice2html/Main.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2007-01-19 03:44:57 +0000
committerMichi Henning <michi@zeroc.com>2007-01-19 03:44:57 +0000
commitde69f3aa4cb96199f6b5071e84c2829711fc4a82 (patch)
treee1481f753a63810e4f40add8c3f2b9fe90dab003 /cpp/src/slice2html/Main.cpp
parentFixed adapter status problem (diff)
downloadice-de69f3aa4cb96199f6b5071e84c2829711fc4a82.tar.bz2
ice-de69f3aa4cb96199f6b5071e84c2829711fc4a82.tar.xz
ice-de69f3aa4cb96199f6b5071e84c2829711fc4a82.zip
*** empty log message ***
Diffstat (limited to 'cpp/src/slice2html/Main.cpp')
-rw-r--r--cpp/src/slice2html/Main.cpp11
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)
{