output simple-mtpfs help message to stderr as fuse does
This commit is contained in:
parent
6e399b115b
commit
621b1035e2
|
@ -343,7 +343,7 @@ void SMTPFileSystem::printHelp() const
|
||||||
struct fuse_args args = FUSE_ARGS_INIT(0, NULL);
|
struct fuse_args args = FUSE_ARGS_INIT(0, NULL);
|
||||||
struct fuse_operations tmp_operations;
|
struct fuse_operations tmp_operations;
|
||||||
memset(&tmp_operations, 0, sizeof(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
|
#ifdef HAVE_LIBUSB1
|
||||||
<< " <source>"
|
<< " <source>"
|
||||||
#endif // HAVE_LIBUSB1
|
#endif // HAVE_LIBUSB1
|
||||||
|
@ -360,7 +360,7 @@ void SMTPFileSystem::printHelp() const
|
||||||
fuse_opt_add_arg(&args, "-ho");
|
fuse_opt_add_arg(&args, "-ho");
|
||||||
fuse_main(args.argc, args.argv, &tmp_operations, nullptr);
|
fuse_main(args.argc, args.argv, &tmp_operations, nullptr);
|
||||||
fuse_opt_free_args(&args);
|
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
|
void SMTPFileSystem::printVersion() const
|
||||||
|
|
Loading…
Reference in New Issue