X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemparse.cc;h=fc2cb0c722cedc1ff671dc5474b660764a56eae4;hb=e0871342c7fdc7cb9c518d686aab4519c1bda764;hp=eb978f2c12eb1d3866273fc33720f082be55c4d7;hpb=a4303fb9aa783e5f0575d6ba00d3fe286905d658;p=awesomized%2Flibmemcached diff --git a/clients/memparse.cc b/clients/memparse.cc index eb978f2c..fc2cb0c7 100644 --- a/clients/memparse.cc +++ b/clients/memparse.cc @@ -2,7 +2,7 @@ * * Libmemcached library * - * Copyright (C) 2011 Data Differential, http://datadifferential.com/ + * Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/ * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,11 +35,13 @@ * */ -#include +#include +#include +#include #include -#include +#include int main(int argc, char *argv[]) { @@ -58,8 +60,8 @@ int main(int argc, char *argv[]) if (rc != MEMCACHED_SUCCESS) { - std::cerr << "Failed to parse options:" << argv[x] << std::endl; - std::cerr << "\t" << buffer << std::endl; + std::cerr << "Failed to parse argument #" << x << " " << argv[x] << std::endl; + std::cerr << buffer << std::endl; return EXIT_FAILURE; } }