summaryrefslogtreecommitdiff
path: root/cpp/src/slice2docbook/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2docbook/Main.cpp')
-rw-r--r--cpp/src/slice2docbook/Main.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/slice2docbook/Main.cpp b/cpp/src/slice2docbook/Main.cpp
index 058f3d287ed..adba203cb80 100644
--- a/cpp/src/slice2docbook/Main.cpp
+++ b/cpp/src/slice2docbook/Main.cpp
@@ -20,13 +20,14 @@ usage(const char* n)
cerr << "Usage: " << n << " [options] docbook-file slice-files ...\n";
cerr <<
"Options:\n"
-"-s, --stand-alone Create stand-alone docbook file.\n"
-"--no-globals Don't document the global module.\n"
"-h, --help Show this message.\n"
+"-v, --version Display the Ice version.\n"
"-DNAME Define NAME as 1.\n"
"-DNAME=DEF Define NAME as DEF.\n"
"-UNAME Remove any definition for NAME.\n"
"-IDIR Put DIR in the include file search path.\n"
+"-s, --stand-alone Create stand-alone docbook file.\n"
+"--no-globals Don't document the global module.\n"
"-d, --debug Print debug messages.\n"
;
}
@@ -87,6 +88,12 @@ main(int argc, char* argv[])
usage(argv[0]);
return EXIT_SUCCESS;
}
+ else if(strcmp(argv[idx], "-v") == 0 ||
+ strcmp(argv[idx], "--version") == 0)
+ {
+ cout << ICE_STRING_VERSION << endl;
+ return EXIT_SUCCESS;
+ }
else if(strcmp(argv[idx], "-d") == 0 ||
strcmp(argv[idx], "--debug") == 0)
{