diff options
author | Marc Laukien <marc@zeroc.com> | 2001-07-24 22:32:19 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-07-24 22:32:19 +0000 |
commit | 2d98bbf1ae013fca26c0394d599af6acbb2be6d4 (patch) | |
tree | c18dea07b76fd0592d9c5ba2a821782d6d07694e /cpp/src/slice2docbook/Main.cpp | |
parent | more docu stuff (diff) | |
download | ice-2d98bbf1ae013fca26c0394d599af6acbb2be6d4.tar.bz2 ice-2d98bbf1ae013fca26c0394d599af6acbb2be6d4.tar.xz ice-2d98bbf1ae013fca26c0394d599af6acbb2be6d4.zip |
version
Diffstat (limited to 'cpp/src/slice2docbook/Main.cpp')
-rw-r--r-- | cpp/src/slice2docbook/Main.cpp | 11 |
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) { |