fix-unit-occupancy: Always provide feedback when running command

develop
lethosor 2015-08-10 11:30:21 -04:00
parent d09cdc83ba
commit 05f36856f4
1 changed files with 3 additions and 1 deletions

@ -230,7 +230,9 @@ command_result cmd_fix_unit_occupancy (color_ostream &out, std::vector <std::str
if (!ok) if (!ok)
return CR_WRONG_USAGE; return CR_WRONG_USAGE;
fix_unit_occupancy(out, opts); unsigned count = fix_unit_occupancy(out, opts);
if (!count)
out << "No occupancy issues found." << endl;
return CR_OK; return CR_OK;
} }