diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-05-09 12:35:23 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-05-09 12:35:23 +0000 |
commit | 373094dee4c021580734391ae72dbb65476428e5 (patch) | |
tree | 71b656114a5ea62504031f4bc8eb474f2c690b17 /cpp/src/IceGrid/IceGridNode.cpp | |
parent | Small fix (diff) | |
download | ice-373094dee4c021580734391ae72dbb65476428e5.tar.bz2 ice-373094dee4c021580734391ae72dbb65476428e5.tar.xz ice-373094dee4c021580734391ae72dbb65476428e5.zip |
More minor fixes
Diffstat (limited to 'cpp/src/IceGrid/IceGridNode.cpp')
-rw-r--r-- | cpp/src/IceGrid/IceGridNode.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IceGrid/IceGridNode.cpp b/cpp/src/IceGrid/IceGridNode.cpp index 72aa45694f0..566d551ad1f 100644 --- a/cpp/src/IceGrid/IceGridNode.cpp +++ b/cpp/src/IceGrid/IceGridNode.cpp @@ -193,7 +193,6 @@ bool NodeService::start(int argc, char* argv[]) { bool nowarn = false; - bool checkdb = false; string desc; vector<string> targets; for(int i = 1; i < argc; ++i) @@ -228,9 +227,11 @@ NodeService::start(int argc, char* argv[]) targets.push_back(argv[i]); } } - else if(strcmp(argv[i], "--checkdb") == 0) - { - checkdb = true; + else + { + error("invalid option: `" + string(argv[i]) + "'"); + usage(argv[0]); + return false; } } @@ -606,8 +607,7 @@ NodeService::usage(const string& appName) "\n" "--deploy DESCRIPTOR [TARGET1 [TARGET2 ...]]\n" " Deploy descriptor in file DESCRIPTOR, with\n" - " optional targets.\n" - "--checkdb Do a consistency check of the node database."; + " optional targets.\n"; #ifdef _WIN32 if(checkSystem()) { |