15 int usage(
const std::string& command_name,
int exit_code);
31 if (rc != 0)
return rc;
33 std::string resultsName(
arg.hresults);
36 std::cerr <<
"File " << resultsName <<
" does not seem to exist. Exiting" << std::endl;
52 int usage(
const std::string& command_name,
int exit_code) {
55 message +=
"This program takes as an argument the name of a \'han\' results\n";
56 message +=
"file and prints the statuses of all assessments to stdout.\n";
58 std::string::size_type
s = command_name.size();
59 std::string::size_type
p = command_name.rfind(
'/',
s);
60 std::string short_name = command_name.substr(
p + 1,
s);
63 std::cout <<
"Usage: " << short_name <<
" <results_file>\n";