send help message to stdout

This commit is contained in:
Fufu Fang 2021-08-22 02:56:38 +01:00
parent 878f120fc2
commit 8777cf90bc
No known key found for this signature in database
GPG Key ID: 0F6BB5EF6F8BB729
1 changed files with 4 additions and 5 deletions

View File

@ -284,8 +284,7 @@ void add_arg(char ***fuse_argv_ptr, int *fuse_argc, char *opt_string)
static void print_help(char *program_name, int long_help) static void print_help(char *program_name, int long_help)
{ {
lprintf(debug, printf("usage: %s [options] URL mountpoint\n", program_name);
"usage: %s [options] URL mountpoint\n", program_name);
if (long_help) { if (long_help) {
print_long_help(); print_long_help();
} }
@ -293,15 +292,15 @@ static void print_help(char *program_name, int long_help)
static void print_version() static void print_version()
{ {
lprintf(debug, "HTTPDirFS version " VERSION "\n"); printf("HTTPDirFS version " VERSION "\n");
/* --------- Print off SSL engine version --------- */ /* --------- Print off SSL engine version --------- */
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW); curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
lprintf(debug, "libcurl SSL engine: %s\n", data->ssl_version); printf("libcurl SSL engine: %s\n", data->ssl_version);
} }
static void print_long_help() static void print_long_help()
{ {
lprintf(debug, printf(
"\n\ "\n\
general options:\n\ general options:\n\
--config Specify a configuration file \n\ --config Specify a configuration file \n\