equal
deleted
inserted
replaced
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); |