1
0
mirror of https://github.com/cheat/cheat.git synced 2025-05-29 03:17:05 +02:00

fix: replace Parse with ParseArgs

Parse() is deprecated
This commit is contained in:
Zhizhen He 2021-11-17 10:18:42 +08:00 committed by Christopher Allen Lane
parent fe8f39013e
commit c482488c41

@ -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))