diff options
author | Michi Henning <michi@zeroc.com> | 2006-08-25 07:58:01 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-08-25 07:58:01 +0000 |
commit | a3443505bc1f80a5264d31c79bd6120e10da815c (patch) | |
tree | d850eedf58d7a5a50a0314d9aa96eb0cd2cf2c50 /cpp/src/IcePatch2/Calc.cpp | |
parent | use zero-copy API for primitive sequence types (diff) | |
download | ice-a3443505bc1f80a5264d31c79bd6120e10da815c.tar.bz2 ice-a3443505bc1f80a5264d31c79bd6120e10da815c.tar.xz ice-a3443505bc1f80a5264d31c79bd6120e10da815c.zip |
Bug 1325.
Diffstat (limited to 'cpp/src/IcePatch2/Calc.cpp')
-rw-r--r-- | cpp/src/IcePatch2/Calc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IcePatch2/Calc.cpp b/cpp/src/IcePatch2/Calc.cpp index dfe342c7018..a061a4e6526 100644 --- a/cpp/src/IcePatch2/Calc.cpp +++ b/cpp/src/IcePatch2/Calc.cpp @@ -141,18 +141,18 @@ main(int argc, char* argv[]) return EXIT_FAILURE; } - if(opts.isSet("h") || opts.isSet("help")) + if(opts.isSet("help")) { usage(argv[0]); return EXIT_SUCCESS; } - if(opts.isSet("v") || opts.isSet("version")) + if(opts.isSet("version")) { cout << ICE_STRING_VERSION << endl; return EXIT_SUCCESS; } - bool doCompress = opts.isSet("z") || opts.isSet("compress"); - bool dontCompress = opts.isSet("Z") || opts.isSet("no-compress"); + bool doCompress = opts.isSet("compress"); + bool dontCompress = opts.isSet("no-compress"); if(doCompress && dontCompress) { cerr << argv[0] << ": only one of -z and -Z are mutually exclusive" << endl; @@ -167,8 +167,8 @@ main(int argc, char* argv[]) { compress = 0; } - verbose = opts.isSet("V") || opts.isSet("verbose"); - caseInsensitive = opts.isSet("i") || opts.isSet("case-insensitive"); + verbose = opts.isSet("verbose"); + caseInsensitive = opts.isSet("case-insensitive"); if(args.empty()) { |