summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r--cpp/src/IcePatch/Server.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/cpp/src/IcePatch/Server.cpp b/cpp/src/IcePatch/Server.cpp
index 37f077a93d0..5ced21f7d3b 100644
--- a/cpp/src/IcePatch/Server.cpp
+++ b/cpp/src/IcePatch/Server.cpp
@@ -256,7 +256,20 @@ IcePatch::Updater::cleanup(const FileDescSeq& fileDescSeq)
int
main(int argc, char* argv[])
{
- addArgumentPrefix("IcePatch");
+ PropertiesPtr defaultProperties;
+ try
+ {
+ defaultProperties = getDefaultProperties(argc, argv);
+ StringSeq args = argsToStringSeq(argc, argv);
+ args = defaultProperties->parseCommandLineOptions("IcePatch", args);
+ stringSeqToArgs(args, argc, argv);
+ }
+ catch(const Exception& ex)
+ {
+ cerr << argv[0] << ": " << ex << endl;
+ return EXIT_FAILURE;
+ }
+
Server app;
return app.main(argc, argv);
}