lib9p

Go 9P library.
Log | Files | Refs | LICENSE

commit d958eeb2942a10f1c64e63bdd53778e5710cd2f9
parent 0c5989985a8d2bb79ebb4ff1b9831d0e5b139207
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sun, 14 Jan 2024 11:27:55 +0900

add usage to cmd/diskfs

Diffstat:
Mcmd/diskfs/main.go | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/cmd/diskfs/main.go b/cmd/diskfs/main.go @@ -1,6 +1,14 @@ // Diskfs exports the file system on the disk. +// +// Usage: +// diskfs [-D] [-P profport] [-a addr] [-p port] root +// Diskfs exports file system on the disk rooted at root. // By default it listens to 127.0.0.1:5640. // You can change the address and port number with -a and -p flags. +// The -D flag enables very chatty log messages. +// The -P flag enables the pprof web interface at the the port profport. +// The address the pprof listens to is the same as addr (or 127.0.0.1 if +// -a flag is not specified). package main import ( @@ -30,7 +38,7 @@ var gFlag = flag.Bool("g", false, "Prints goroutin count once per second.") func main() { flag.Parse() if flag.NArg() != 1 { - fmt.Fprintf(os.Stderr, "usage: %s [-D] [-a <addr>] [-p <port>] <root>\n", os.Args[0]) + fmt.Fprintf(os.Stderr, "usage: %s [-D] [-P profport] [-a addr] [-p port] root\n", os.Args[0]) os.Exit(1) } if *gFlag {