mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-06 20:01:44 +08:00
Complain about given arguments if none are required.
This commit is contained in:
@@ -105,6 +105,12 @@ void CommandConfig::execute(MasterDevice &m, const StringVector &args)
|
||||
{
|
||||
ConfigList configs;
|
||||
|
||||
if (args.size()) {
|
||||
stringstream err;
|
||||
err << "'" << getName() << "' takes no arguments!";
|
||||
throwInvalidUsageException(err);
|
||||
}
|
||||
|
||||
m.open(MasterDevice::Read);
|
||||
configs = selectedConfigs(m);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user