3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00

Merge pull request #311 from iNecas/fix-docopt-deprecation

Replace docopt.Parse with docopt.ParseArgs
This commit is contained in:
Daniel Oaks 2018-12-08 08:55:00 +10:00 committed by GitHub
commit 6cedb80374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ Options:
-h --help Show this screen. -h --help Show this screen.
--version Show version.` --version Show version.`
arguments, _ := docopt.Parse(usage, nil, true, version, false) arguments, _ := docopt.ParseArgs(usage, nil, version)
configfile := arguments["--conf"].(string) configfile := arguments["--conf"].(string)
config, err := irc.LoadConfig(configfile) config, err := irc.LoadConfig(configfile)