mirror of
https://github.com/cheat/cheat.git
synced 2024-11-25 07:21:36 +01:00
fix: replace Parse with ParseArgs
Parse() is deprecated
This commit is contained in:
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))
|
||||
|
Loading…
Reference in New Issue
Block a user