diff -r 6b45c4c6f56f -r e651000f1ff1 tool/CommandVersion.cpp --- a/tool/CommandVersion.cpp Thu Mar 19 08:42:33 2009 +0000 +++ b/tool/CommandVersion.cpp Thu Mar 19 08:43:05 2009 +0000 @@ -56,6 +56,12 @@ 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; }