Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit 258b6f6

Browse files
committed
add basic usage string
1 parent fb0a5d9 commit 258b6f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proxy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ func (h jsonrpc2HandlerFunc) Handle(ctx context.Context, conn *jsonrpc2.Conn, re
5151
}
5252

5353
func main() {
54+
flag.Usage = func() {
55+
fmt.Printf("Usage: cloneproxy [OPTIONS] [LSP_COMMAND_ARGS...]\n\nOptions:\n")
56+
flag.PrintDefaults()
57+
}
58+
5459
flag.Parse()
5560
log.SetFlags(log.Flags() | log.Lshortfile)
5661

0 commit comments

Comments
 (0)