Remove use of std::endl
isocpp/CppCoreGuidelines#357
Change-Id: Iebfb13e4e03859e66811b6a6c9a3fe9d1b8f85a5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/argument.cpp b/argument.cpp
index d89764d..4cab8a8 100644
--- a/argument.cpp
+++ b/argument.cpp
@@ -58,11 +58,11 @@
void ArgumentParser::usage(char** argv)
{
- std::cerr << "Usage: " << argv[0] << " [options]" << std::endl;
- std::cerr << "Options:" << std::endl;
- std::cerr << " --help print this menu" << std::endl;
- std::cerr << " --path=<path> sysfs location to monitor"
- << std::endl;
+ std::cerr << "Usage: " << argv[0] << " [options]\n";
+ std::cerr << "Options:\n";
+ std::cerr << " --help print this menu\n";
+ std::cerr << " --path=<path> sysfs location to monitor\n";
+ std::cerr << std::flush;
}
const option ArgumentParser::options[] =