summaryrefslogtreecommitdiff
path: root/cpp/src/IceBox/Admin.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-04-24 21:13:00 +0000
committerMark Spruiell <mes@zeroc.com>2002-04-24 21:13:00 +0000
commit5409c1ecef0f226dedc77721c0d2fc8dfe9e85de (patch)
tree97ba75bc47a143726d6d8382be3a462e51716700 /cpp/src/IceBox/Admin.cpp
parentcleaning up sample impls (diff)
downloadice-5409c1ecef0f226dedc77721c0d2fc8dfe9e85de.tar.bz2
ice-5409c1ecef0f226dedc77721c0d2fc8dfe9e85de.tar.xz
ice-5409c1ecef0f226dedc77721c0d2fc8dfe9e85de.zip
merging from plugins branch
Diffstat (limited to 'cpp/src/IceBox/Admin.cpp')
-rw-r--r--cpp/src/IceBox/Admin.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/IceBox/Admin.cpp b/cpp/src/IceBox/Admin.cpp
index 657f881a5a2..6269444b63b 100644
--- a/cpp/src/IceBox/Admin.cpp
+++ b/cpp/src/IceBox/Admin.cpp
@@ -25,8 +25,6 @@ public:
int
main(int argc, char* argv[])
{
- addArgumentPrefix("IceBox");
-
Client app;
int rc = app.main(argc, argv);
@@ -50,6 +48,12 @@ Client::usage()
int
Client::run(int argc, char* argv[])
{
+ PropertiesPtr properties = communicator()->getProperties();
+
+ StringSeq args = argsToStringSeq(argc, argv);
+ args = properties->parseCommandLineOptions("IceBox", args);
+ stringSeqToArgs(args, argc, argv);
+
vector<string> commands;
int idx = 1;
@@ -84,7 +88,6 @@ Client::run(int argc, char* argv[])
return EXIT_SUCCESS;
}
- PropertiesPtr properties = communicator()->getProperties();
const char* managerEndpointsProperty = "IceBox.ServiceManager.Endpoints";
string managerEndpoints = properties->getProperty(managerEndpointsProperty);
if (managerEndpoints.empty())