diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-09-04 13:32:59 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-09-04 13:32:59 -0230 |
commit | 21636696805e2963b6869122ff7268004821eb19 (patch) | |
tree | ef158217555fba17c4d173b183dcf7c6607249b3 /cpp/demo/Freeze/backup/Client.cpp | |
parent | Added support for Java monotonic clock (diff) | |
download | ice-21636696805e2963b6869122ff7268004821eb19.tar.bz2 ice-21636696805e2963b6869122ff7268004821eb19.tar.xz ice-21636696805e2963b6869122ff7268004821eb19.zip |
bug 1831 - changed demos as well to warn about extra arguments
Diffstat (limited to 'cpp/demo/Freeze/backup/Client.cpp')
-rw-r--r-- | cpp/demo/Freeze/backup/Client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/demo/Freeze/backup/Client.cpp b/cpp/demo/Freeze/backup/Client.cpp index 2c49ab7750a..81c69701b78 100644 --- a/cpp/demo/Freeze/backup/Client.cpp +++ b/cpp/demo/Freeze/backup/Client.cpp @@ -31,6 +31,11 @@ main(int argc, char* argv[]) initData.properties->load("config"); Ice::CommunicatorPtr communicator = Ice::initialize(argc, argv, initData); + if(argc > 1) + { + cerr << argv[0] << ": too many arguments" << endl; + return EXIT_FAILURE; + } Freeze::ConnectionPtr connection = Freeze::createConnection(communicator, "backup"); IntLongMap m(connection, "IntLongMap", true); |