Complain about given arguments if none are required.

This commit is contained in:
Florian Pose
2009-03-19 08:43:05 +00:00
parent 5f7cd5eb46
commit 87cedad13f
10 changed files with 58 additions and 0 deletions

View File

@@ -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);