diff -r ec6223c3b7ec -r 489be2180f71 tool/CommandData.cpp --- a/tool/CommandData.cpp Wed Feb 24 16:27:11 2010 +0100 +++ b/tool/CommandData.cpp Wed Feb 24 17:24:20 2010 +0100 @@ -75,17 +75,16 @@ throwInvalidUsageException(err); } - if (getMasterIndices().size() != 1) { - stringstream err; - err << getName() << " requires to select a single master!"; - throwInvalidUsageException(err); - } - MasterDevice m(getMasterIndices().front()); - m.open(MasterDevice::Read); - domains = selectedDomains(m); + MasterIndexList::const_iterator mi; + for (mi = getMasterIndices().begin(); + mi != getMasterIndices().end(); mi++) { + MasterDevice m(*mi); + m.open(MasterDevice::Read); + domains = selectedDomains(m); - for (di = domains.begin(); di != domains.end(); di++) { - outputDomainData(m, *di); + for (di = domains.begin(); di != domains.end(); di++) { + outputDomainData(m, *di); + } } }