aboutsummaryrefslogtreecommitdiff
path: root/lib/helper.c
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-15 19:46:57 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-15 19:46:57 -0700
commitb16650830d69cbe2d13e74c4318757c15f2c552f (patch)
treeeb2972d1d46aeed0bba411a02b8f523c7e21a8c2 /lib/helper.c
parentb46250c40e29a23d37fe8fdadd6ef0d4cfe8b897 (diff)
Make --help output more suitable for end-user
We now only list options that are potentially useful for an end-user (and unlikely to accidentally break a file system). The full list of FUSE options has been moved to the documentation of the fuse_new() and fuse_session_new() functions.
Diffstat (limited to 'lib/helper.c')
-rw-r--r--lib/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/helper.c b/lib/helper.c
index 6044bb3..6d72802 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -114,14 +114,13 @@ static const struct fuse_opt conn_info_opt_spec[] = {
void fuse_cmdline_help(void)
{
- printf("General options:\n"
- " -h --help print help\n"
+ printf(" -h --help print help\n"
" -V --version print version\n"
" -d -o debug enable debug output (implies -f)\n"
" -f foreground operation\n"
" -s disable multi-threaded operation\n"
" -o clone_fd use separate fuse device fd for each thread\n"
- "\n");
+ " (may improve performance)\n");
}
static int fuse_helper_opt_proc(void *data, const char *arg, int key,
@@ -270,6 +269,7 @@ int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op,
if(args.argv[0] != '\0')
printf("usage: %s [options] <mountpoint>\n\n",
args.argv[0]);
+ printf("FUSE options:\n");
fuse_cmdline_help();
if (fuse_opt_add_arg(&args, "--help") == -1) {
res = 1;