aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/sharefs
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-27 02:20:41 +0900
committerOphestra <cat@gensokyo.uk>2025-12-27 02:20:41 +0900
commita27305cb4aa4e382b9474175139ab72bff220fd6 (patch)
tree56df980e0dbaa83e714b7f9c8246243fc1a7d8b7 /cmd/sharefs
parent0e476c5e5b5f5b5fccfab0794936e3ede1c8116a (diff)
cmd/sharefs: improve help message
This improves consistency with the fuse_main help message. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/sharefs')
-rw-r--r--cmd/sharefs/fuse.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/cmd/sharefs/fuse.go b/cmd/sharefs/fuse.go
index 945650bd..4b9764d9 100644
--- a/cmd/sharefs/fuse.go
+++ b/cmd/sharefs/fuse.go
@@ -108,13 +108,17 @@ func sharefs_destroy(private_data unsafe.Pointer) {
}
// showHelp prints the help message.
-func showHelp() {
+func showHelp(args *C.struct_fuse_args) {
fmt.Printf("usage: %s [options] <mountpoint>\n\n", executableName)
- C.fuse_cmdline_help()
- C.fuse_lowlevel_help()
+
+ fmt.Println("Filesystem options:")
fmt.Println(" -o source=/data/media source directory to be mounted")
fmt.Println(" -o setuid=1023 uid to run as when starting as root")
fmt.Println(" -o setgid=1023 gid to run as when starting as root")
+
+ fmt.Println("\nFUSE options:")
+ C.fuse_cmdline_help()
+ C.fuse_lib_help(args)
}
// parseOpts parses fuse options via fuse_opt_parse.
@@ -155,7 +159,7 @@ func parseOpts(args *C.struct_fuse_args) (
}
if unsafeOpts.source == nil || *unsafeOpts.source == 0 {
- showHelp()
+ showHelp(args)
ret = 1
return
} else {