mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 17:17:23 +08:00
Complain about given arguments if none are required.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user