summaryrefslogtreecommitdiff
path: root/cpp/test/IceStorm/single/Subscriber.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/test/IceStorm/single/Subscriber.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/test/IceStorm/single/Subscriber.cpp')
-rw-r--r--cpp/test/IceStorm/single/Subscriber.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp
index cd95d6a8b9a..2b3ce84f898 100644
--- a/cpp/test/IceStorm/single/Subscriber.cpp
+++ b/cpp/test/IceStorm/single/Subscriber.cpp
@@ -65,6 +65,12 @@ deleteLock(const string& name)
int
run(int argc, char* argv[], const CommunicatorPtr& communicator)
{
+ PropertiesPtr properties = communicator->getProperties();
+
+ StringSeq args = argsToStringSeq(argc, argv);
+ args = properties->parseCommandLineOptions("IceStorm", args);
+ stringSeqToArgs(args, argc, argv);
+
string lockfile = "subscriber.lock";
if (argc != 1)
@@ -73,7 +79,6 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
}
createLock(lockfile);
- PropertiesPtr properties = communicator->getProperties();
const char* managerEndpointsProperty = "IceStorm.TopicManager.Endpoints";
string managerEndpoints = properties->getProperty(managerEndpointsProperty);
if (managerEndpoints.empty())
@@ -123,7 +128,6 @@ main(int argc, char* argv[])
try
{
- addArgumentPrefix("IceStorm");
communicator = initialize(argc, argv);
status = run(argc, argv, communicator);
}