summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Client.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/IcePack/Client.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/IcePack/Client.cpp')
-rw-r--r--cpp/src/IcePack/Client.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp
index 7a611c15a3f..0d468109d10 100644
--- a/cpp/src/IcePack/Client.cpp
+++ b/cpp/src/IcePack/Client.cpp
@@ -27,7 +27,6 @@ public:
int
main(int argc, char* argv[])
{
- addArgumentPrefix("IcePack");
Client app;
return app.main(argc, argv);
}
@@ -56,6 +55,12 @@ Client::run(int argc, char* argv[])
string commands;
bool debug = false;
+ PropertiesPtr properties = communicator()->getProperties();
+
+ StringSeq args = argsToStringSeq(argc, argv);
+ args = properties->parseCommandLineOptions("IcePack", args);
+ stringSeqToArgs(args, argc, argv);
+
int idx = 1;
while (idx < argc)
{
@@ -137,7 +142,6 @@ Client::run(int argc, char* argv[])
return EXIT_FAILURE;
}
- PropertiesPtr properties = communicator()->getProperties();
const char* adminEndpointsProperty = "IcePack.Admin.Endpoints";
string adminEndpoints = properties->getProperty(adminEndpointsProperty);
if (adminEndpoints.empty())