tool/CommandConfig.cpp
changeset 1373 e651000f1ff1
parent 1363 11c0b2caa253
child 1455 aa18fcfe0fd1
equal deleted inserted replaced
1372:6b45c4c6f56f 1373:e651000f1ff1
   103  */
   103  */
   104 void CommandConfig::execute(MasterDevice &m, const StringVector &args)
   104 void CommandConfig::execute(MasterDevice &m, const StringVector &args)
   105 {
   105 {
   106     ConfigList configs;
   106     ConfigList configs;
   107 
   107 
       
   108     if (args.size()) {
       
   109         stringstream err;
       
   110         err << "'" << getName() << "' takes no arguments!";
       
   111         throwInvalidUsageException(err);
       
   112     }
       
   113 
   108     m.open(MasterDevice::Read);
   114     m.open(MasterDevice::Read);
   109     configs = selectedConfigs(m);
   115     configs = selectedConfigs(m);
   110 
   116 
   111     if (getVerbosity() == Verbose) {
   117     if (getVerbosity() == Verbose) {
   112         showDetailedConfigs(m, configs);
   118         showDetailedConfigs(m, configs);