From 21636696805e2963b6869122ff7268004821eb19 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 4 Sep 2007 13:32:59 -0230 Subject: bug 1831 - changed demos as well to warn about extra arguments --- cpp/demo/Database/Oracle/proc/Client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpp/demo/Database/Oracle/proc/Client.cpp') diff --git a/cpp/demo/Database/Oracle/proc/Client.cpp b/cpp/demo/Database/Oracle/proc/Client.cpp index 569fdf620fc..d0501a5c9e4 100644 --- a/cpp/demo/Database/Oracle/proc/Client.cpp +++ b/cpp/demo/Database/Oracle/proc/Client.cpp @@ -159,6 +159,12 @@ HRClient::help() const int HRClient::run(int argc, char* argv[]) { + if(argc > 1) + { + cerr << appName() << ": too many arguments" << endl; + return EXIT_FAILURE; + } + Ice::ObjectPrx base = communicator()->propertyToProxy("HR.DeptFactory"); _factory = DeptFactoryPrx::checkedCast(base); if(_factory == 0) -- cgit v1.2.3