mcc can now set memcached debug mode and has help
authorAntoine Musso <hashar@free.fr>
Wed, 16 Jan 2013 14:27:21 +0000 (15:27 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 17 Jan 2013 15:25:49 +0000 (15:25 +0000)
commit952a88eec402cfc7bf3631aeeb952ba31fca2102
treefc2dac24d2f9d1e08e621d5aa0b21f8f2535db30
parentaf2a837b0a6ae0ee5b597e620fb925206b88c365
mcc can now set memcached debug mode and has help

This patch let us set the debug mode on the memcached connection. Simply
pass --debug as an argument.  I have also added basic usage
documentation with --help, listing the interacting commands as well.

Example output:

$ php mcc.php --help
Usage:
mcc.php [--debug]
mcc.php --help

MemCached Command (mcc) is an interactive command tool that let you
interact
with the MediaWiki memcached cache.

Options:
--debug Set debug mode on the memcached connection.
--help  This help screen.

Interactive commands:
get    : grabs something
getsock: lists sockets
set    : changes something
delete : deletes something
history: show command line history
server : show current memcached server
dumpmcc: shows the whole thing
exit   : exit mcc
quit   : exit mcc
help   : help about a command

$

Change-Id: Ib4603eecbd6a8e6f3ba8bf3cf350c0e3df652d3b
maintenance/mcc.php