ClientCommand: use C++11 for-loops