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/slice2confluence | |
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/slice2confluence')
-rw-r--r-- | cpp/src/slice2confluence/Main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/slice2confluence/Main.cpp b/cpp/src/slice2confluence/Main.cpp index beaf6e7fc84..a8a1b83e7fd 100644 --- a/cpp/src/slice2confluence/Main.cpp +++ b/cpp/src/slice2confluence/Main.cpp @@ -54,18 +54,18 @@ splitCommas(string& str) size_t oldPos = 0; size_t commaPos = str.find(","); string token; - + while (commaPos != string::npos) { token = str.substr(oldPos, commaPos-oldPos); strings.push_back(token); - + oldPos = commaPos+1; commaPos = str.find(",", oldPos); } token = str.substr(oldPos); strings.push_back(token); - + return strings; } @@ -102,8 +102,8 @@ usage(const char* 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" - "--ice Permit `Ice' prefix (for building Ice source code only).\n" - "--ice Permit underscores in Slice identifiers.\n" + "--ice Allowed reserved Ice prefix in Slice identifiers.\n" + "--underscore Allow underscores in Slice identifiers.\n" ; } @@ -177,9 +177,9 @@ compile(int argc, char* argv[]) } bool preprocess = opts.isSet("E"); - + string output = opts.optArg("output-dir"); - + string sortorderstring = opts.optArg("sort-order"); vector<string> sort_order = splitCommas(sortorderstring); |