Complain about given arguments if none are required.

This commit is contained in:
Florian Pose
2009-03-19 08:43:05 +00:00
parent 5f7cd5eb46
commit 87cedad13f
10 changed files with 58 additions and 0 deletions
+6
View File
@@ -68,6 +68,12 @@ void CommandData::execute(MasterDevice &m, const StringVector &args)
DomainList domains;
DomainList::const_iterator di;
if (args.size()) {
stringstream err;
err << "'" << getName() << "' takes no arguments!";
throwInvalidUsageException(err);
}
m.open(MasterDevice::Read);
domains = selectedDomains(m);