summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r--cpp/src/IceGrid/Parser.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp
index 5009b2205fb..46bd904ba25 100644
--- a/cpp/src/IceGrid/Parser.cpp
+++ b/cpp/src/IceGrid/Parser.cpp
@@ -102,13 +102,13 @@ Parser::usage()
" manual."
"\n"
"adapter list List all registered adapters.\n"
- "adapter endpoints ID [SERVERID]\n"
- " Get endpoints of adapter ID from server SERVERID.\n"
- " If SERVERID is not specified, get the endpoints of all\n"
+ "adapter endpoints ID [REPLICAID]\n"
+ " Show the endpoints of adapter ID from replica REPLICAID.\n"
+ " If REPLICAID is not specified, show the endpoints of all\n"
" the registered replicas.\n"
- "adapter remove ID [SERVERID]\n"
- " Remove the endpoints of adapter ID from server SERVERID.\n"
- " If SERVERID is not specified, remove the endpoints of all\n"
+ "adapter remove ID [REPLICAID]\n"
+ " Remove the endpoints of adapter ID from replica REPLICAID.\n"
+ " If REPLICAID is not specified, remove the endpoints of all\n"
" the registered replicas.\n"
"\n"
"object add PROXY [TYPE] Add an object to the object registry,\n"
@@ -952,8 +952,7 @@ Parser::removeAdapter(const list<string>& args)
StringObjectProxyDict proxies = _admin->getAdapterEndpoints(adapterId);
if(args.size() > 1)
{
- string serverId = *p++;
- _admin->removeAdapterWithServerId(adapterId, serverId);
+ _admin->removeAdapterWithReplicaId(adapterId, *p++);
}
else
{