summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePack/Server.cpp')
-rw-r--r--cpp/src/IcePack/Server.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/IcePack/Server.cpp b/cpp/src/IcePack/Server.cpp
index 703138f8dd8..3697d74b263 100644
--- a/cpp/src/IcePack/Server.cpp
+++ b/cpp/src/IcePack/Server.cpp
@@ -52,7 +52,6 @@ main(int argc, char* argv[])
sigaction(SIGCHLD, &action, 0);
#endif
- addArgumentPrefix("IcePack");
Server app;
return app.main(argc, argv);
}
@@ -72,6 +71,12 @@ Server::usage()
int
Server::run(int argc, char* argv[])
{
+ PropertiesPtr properties = communicator()->getProperties();
+
+ StringSeq args = argsToStringSeq(argc, argv);
+ args = properties->parseCommandLineOptions("IcePack", args);
+ stringSeqToArgs(args, argc, argv);
+
bool nowarn = false;
for (int i = 1; i < argc; ++i)
{
@@ -97,8 +102,6 @@ Server::run(int argc, char* argv[])
}
}
- PropertiesPtr properties = communicator()->getProperties();
-
const char* adminEndpointsProperty = "IcePack.Admin.Endpoints";
string adminEndpoints = properties->getProperty(adminEndpointsProperty);
if (!adminEndpoints.empty() && !nowarn)