tool/CommandVersion.cpp
changeset 1373 e651000f1ff1
parent 1363 11c0b2caa253
child 1804 742607c464c4
--- 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;
 }