From c482488c41a16087d341d2505f718ba5050f14c2 Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Wed, 17 Nov 2021 10:18:42 +0800 Subject: [PATCH] fix: replace Parse with ParseArgs Parse() is deprecated --- cmd/cheat/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cheat/main.go b/cmd/cheat/main.go index b3ec86a..9252580 100755 --- a/cmd/cheat/main.go +++ b/cmd/cheat/main.go @@ -21,7 +21,7 @@ const version = "4.2.4" func main() { // initialize options - opts, err := docopt.Parse(usage(), nil, true, version, false) + opts, err := docopt.ParseArgs(usage(), nil, version) if err != nil { // panic here, because this should never happen panic(fmt.Errorf("docopt failed to parse: %v", err))