diff --git a/source/cli/NFDriverCLI.cpp b/source/cli/NFDriverCLI.cpp index 4d27e16..0ef485d 100644 --- a/source/cli/NFDriverCLI.cpp +++ b/source/cli/NFDriverCLI.cpp @@ -20,6 +20,8 @@ */ #include +#include + #define _USE_MATH_DEFINES #include #include @@ -86,8 +88,8 @@ int main(int argc, const char *argv[]) { const std::string samplerate_string = "44100.0"; #else if (argc < 2) { - std::cout << "Invalid number of arguments: ./NFDriver [samplerate]" << std::endl; - return 1; + std::cerr << "Invalid number of arguments: ./NFDriver [samplerate]" << std::endl; + std::exit(1); } const std::string samplerate_string = argv[1]; #endif