diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-19 16:12:56 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-19 16:12:56 +0000 |
commit | 05dd3feba5b858949d0d078effb406c85dda1d90 (patch) | |
tree | 1edaee86dfd436e488dbdcbaaee2a41facc1e35f /cpp/src/IcePack/Client.cpp | |
parent | removed file (diff) | |
download | ice-05dd3feba5b858949d0d078effb406c85dda1d90.tar.bz2 ice-05dd3feba5b858949d0d078effb406c85dda1d90.tar.xz ice-05dd3feba5b858949d0d078effb406c85dda1d90.zip |
--Ice...
Diffstat (limited to 'cpp/src/IcePack/Client.cpp')
-rw-r--r-- | cpp/src/IcePack/Client.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp index 85462a61fdf..3f9ae3b08d4 100644 --- a/cpp/src/IcePack/Client.cpp +++ b/cpp/src/IcePack/Client.cpp @@ -24,7 +24,6 @@ usage(const char* n) "Options:\n" "-h, --help Show this message.\n" "-v, --version Display the Ice version.\n" - "--admin ENDPOINTS Use ENDPOINTS as administrative endpoints.\n" ; } @@ -111,7 +110,7 @@ run(int argc, char* argv[], CommunicatorPtr communicator) int main(int argc, char* argv[]) { - PropertiesPtr properties = getDefaultProperties(); + PropertiesPtr properties = getDefaultProperties(argc, argv); int idx = 1; while (idx < argc) @@ -126,22 +125,6 @@ main(int argc, char* argv[]) cout << ICE_STRING_VERSION << endl; return EXIT_SUCCESS; } - else if (strcmp(argv[idx], "--admin") == 0) - { - if (idx + 1 >= argc) - { - cerr << argv[0] << ": argument expected for`" << argv[idx] << "'" << endl; - usage(argv[0]); - return EXIT_FAILURE; - } - - properties->setProperty("Ice.Adapter.Admin.Endpoints", argv[idx + 1]); - for (int i = idx ; i + 2 < argc ; ++i) - { - argv[i] = argv[i + 2]; - } - argc -= 2; - } else if (argv[idx][0] == '-') { cerr << argv[0] << ": unknown option `" << argv[idx] << "'" << endl; @@ -159,7 +142,7 @@ main(int argc, char* argv[]) try { - communicator = initializeWithProperties(argc, argv, properties); + communicator = initializeWithProperties(properties); status = run(argc, argv, communicator); } catch(const LocalException& ex) |