From 7585a488b7b1e1812f7ebf50107139e2fd65f035 Mon Sep 17 00:00:00 2001 From: ewy Date: Sun, 17 May 2026 02:31:10 +0200 Subject: add handmade help page --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 800232a..25b570e 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "github.com/ewy1/pik/crawl" "github.com/ewy1/pik/flags" "github.com/ewy1/pik/git" + "github.com/ewy1/pik/help" "github.com/ewy1/pik/indexers/pikdex" "github.com/ewy1/pik/menu" "github.com/ewy1/pik/model" @@ -105,6 +106,7 @@ func mode[T any](list ModeMap[T], fire func(mode T) error) *int { } func pik() int { + pflag.Usage = help.Echo pflag.Parse() code := mode(uninitializedModes, func(mode func() error) error { -- cgit v1.3.1