mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 09:07:24 +08:00
Complain about given arguments if none are required.
This commit is contained in:
@@ -56,6 +56,12 @@ string CommandVersion::helpString() const
|
||||
|
||||
void CommandVersion::execute(MasterDevice &m, const StringVector &args)
|
||||
{
|
||||
if (args.size()) {
|
||||
stringstream err;
|
||||
err << "'" << getName() << "' takes no arguments!";
|
||||
throwInvalidUsageException(err);
|
||||
}
|
||||
|
||||
cout << "IgH EtherCAT master " << EC_MASTER_VERSION << endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user