output simple-mtpfs help message to stderr as fuse does

This commit is contained in:
Peter Hatina 2013-10-29 21:26:40 +01:00
parent 6e399b115b
commit 621b1035e2
1 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ void SMTPFileSystem::printHelp() const
struct fuse_args args = FUSE_ARGS_INIT(0, NULL);
struct fuse_operations tmp_operations;
memset(&tmp_operations, 0, sizeof(tmp_operations));
std::cout << "usage: " << m_args.argv[0]
std::cerr << "usage: " << m_args.argv[0]
#ifdef HAVE_LIBUSB1
<< " <source>"
#endif // HAVE_LIBUSB1
@ -360,7 +360,7 @@ void SMTPFileSystem::printHelp() const
fuse_opt_add_arg(&args, "-ho");
fuse_main(args.argc, args.argv, &tmp_operations, nullptr);
fuse_opt_free_args(&args);
std::cout << "\nReport bugs to <" << PACKAGE_BUGREPORT << ">.\n";
std::cerr << "\nReport bugs to <" << PACKAGE_BUGREPORT << ">.\n";
}
void SMTPFileSystem::printVersion() const