Linux apps: printing usage to stderr

This commit is contained in:
Pavel Kirienko
2015-02-05 02:49:53 +03:00
parent 00bada6fb9
commit 9675e31933
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ int main(int argc, const char** argv)
{
if (argc < 3)
{
std::cout << "Usage:\n\t" << argv[0] << " <node-id> <can-iface-name-1> [can-iface-name-N...]" << std::endl;
std::cerr << "Usage:\n\t" << argv[0] << " <node-id> <can-iface-name-1> [can-iface-name-N...]" << std::endl;
return 1;
}
const int self_node_id = std::stoi(argv[1]);