httpserve

simple static HTTP server
git clone git://git.rr3.xyz/httpserve
Log | Files | Refs | README | LICENSE

commit 3e7c1055a137df2d551336b3936ba388a829f826
parent d8947886afa5de5a127434c0f2c48f26aefdced0
Author: Robert Russell <robertrussell.72001@gmail.com>
Date:   Tue, 16 Jul 2024 23:57:16 -0700

Make usage message consistent with the man page

Diffstat:
Mhttpserve.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/httpserve.go b/httpserve.go @@ -13,8 +13,8 @@ import ( func main() { flag.Usage = func() { - format := `Usage: %[1]s tcp [HOST]:[PORT] ROOT_DIR - %[1]s unix PATH ROOT_DIR + format := `Usage: %[1]s tcp [HOST]:[PORT] ROOT + %[1]s unix PATH ROOT ` fmt.Fprintf(os.Stderr, format, os.Args[0]) os.Exit(1)