aboutsummaryrefslogtreecommitdiff
path: root/example/hello_ll.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/hello_ll.c')
-rw-r--r--example/hello_ll.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/example/hello_ll.c b/example/hello_ll.c
index 014b8ca..b830cb2 100644
--- a/example/hello_ll.c
+++ b/example/hello_ll.c
@@ -192,8 +192,18 @@ int main(int argc, char *argv[])
if (fuse_parse_cmdline(&args, &opts) != 0)
return 1;
- if (opts.show_help || opts.show_version) {
- ret = 1;
+ if (opts.show_help) {
+ printf("usage: %s [options] <mountpoint>\n\n", argv[0]);
+ fuse_cmdline_help();
+ fuse_lowlevel_help();
+ fuse_mount_help();
+ ret = 0;
+ goto err_out1;
+ } else if (opts.show_version) {
+ printf("FUSE library version %s\n", fuse_pkgversion());
+ fuse_lowlevel_version();
+ fuse_mount_version();
+ ret = 0;
goto err_out1;
}