diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-05-24 09:51:55 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-05-24 09:51:55 -0700 |
commit | 487dd39e3483217cccb80f46e7a65674c7f6c05a (patch) | |
tree | 75fd3df459df63c2646a4e20c7a32f1ff05a09dd /cpp/src/slice2freeze/Main.cpp | |
parent | bug 4623 - missing doc comments (diff) | |
download | ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.tar.bz2 ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.tar.xz ice-487dd39e3483217cccb80f46e7a65674c7f6c05a.zip |
bug 4752 - allow underscores in Slice identifiers
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-rw-r--r-- | cpp/src/slice2freeze/Main.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp index 97fe20f2e1b..764baa002a6 100644 --- a/cpp/src/slice2freeze/Main.cpp +++ b/cpp/src/slice2freeze/Main.cpp @@ -239,7 +239,8 @@ usage(const char* n) " value is std::less<secondary key type>.\n" "--output-dir DIR Create files in the directory DIR.\n" "-d, --debug Print debug messages.\n" - "--ice Permit `Ice' prefix (for building Ice source code only)\n" + "--ice Permit `Ice' prefix (for building Ice source code only).\n" + "--underscore Permit underscores in Slice identifiers.\n" ; } @@ -1526,6 +1527,7 @@ compile(int argc, char* argv[]) opts.addOpt("", "output-dir", IceUtilInternal::Options::NeedArg); opts.addOpt("d", "debug"); opts.addOpt("", "ice"); + opts.addOpt("", "underscore"); vector<string> args; try @@ -1923,6 +1925,8 @@ compile(int argc, char* argv[]) bool ice = opts.isSet("ice"); + bool underscore = opts.isSet("underscore"); + if(dicts.empty() && indices.empty()) { getErrorStream() << argv[0] << ": error: no Freeze types specified" << endl; @@ -1937,7 +1941,7 @@ compile(int argc, char* argv[]) return EXIT_FAILURE; } - UnitPtr u = Unit::createUnit(true, false, ice); + UnitPtr u = Unit::createUnit(true, false, ice, underscore); StringList includes; |