diff options
author | Joe George <joe@zeroc.com> | 2015-04-29 16:59:02 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2015-04-29 16:59:02 -0400 |
commit | 2c0f9d2fb8557f2debe80c8614ec6991d8d1fa8c (patch) | |
tree | fc425736aa2f558925c46c896244039753445972 /cpp/src/slice2cpp | |
parent | Clean up .gitattributes (diff) | |
download | ice-2c0f9d2fb8557f2debe80c8614ec6991d8d1fa8c.tar.bz2 ice-2c0f9d2fb8557f2debe80c8614ec6991d8d1fa8c.tar.xz ice-2c0f9d2fb8557f2debe80c8614ec6991d8d1fa8c.zip |
Improve usage message for slice compilers
* --ice Allow reserved Ice prefix in Slice identifiers.
* --underscore Allow underscores in Slice identifiers.
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r-- | cpp/src/slice2cpp/Main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/slice2cpp/Main.cpp b/cpp/src/slice2cpp/Main.cpp index 63a727ad6e0..6d201168fac 100644 --- a/cpp/src/slice2cpp/Main.cpp +++ b/cpp/src/slice2cpp/Main.cpp @@ -57,7 +57,7 @@ void usage(const char* n) { getErrorStream() << "Usage: " << n << " [options] slice-files...\n"; - getErrorStream() << + getErrorStream() << "Options:\n" "-h, --help Show this message.\n" "-v, --version Display the Ice version.\n" @@ -77,8 +77,8 @@ usage(const char* n) "--depend-xml Generate dependencies in XML format.\n" "--depend-file FILE Write dependencies to FILE instead of standard output.\n" "-d, --debug Print debug messages.\n" - "--ice Permit `Ice' prefix (for building Ice source code only).\n" - "--underscore Permit underscores in Slice identifiers.\n" + "--ice Allowed reserved Ice prefix in Slice identifiers.\n" + "--underscore Allow underscores in Slice identifiers.\n" "--checksum Generate checksums for Slice definitions.\n" "--stream Generate marshaling support for public stream API.\n" ; @@ -136,7 +136,7 @@ compile(int argc, char* argv[]) string headerExtension = opts.optArg("header-ext"); string sourceExtension = opts.optArg("source-ext"); - + vector<string> extraHeaders = opts.argVec("add-header"); vector<string> cppArgs; @@ -231,7 +231,7 @@ compile(int argc, char* argv[]) out.cleanup(); return EXIT_FAILURE; } - + UnitPtr u = Unit::createUnit(false, false, ice, underscore); int parseStatus = u->parse(*i, cppHandle, debug); u->destroy(); @@ -284,7 +284,7 @@ compile(int argc, char* argv[]) { UnitPtr u = Unit::createUnit(false, false, ice, underscore); int parseStatus = u->parse(*i, cppHandle, debug); - + if(!icecpp->close()) { u->destroy(); |