git » chasquid » commit 929a994

chasquid-util: Use docopt.ParseDoc

author Alberto Bertogli
2020-04-13 12:57:44 UTC
committer Alberto Bertogli
2020-04-14 11:01:01 UTC
parent d60c03f4d2745cbcd6f257c2c6a004f97d68fc67

chasquid-util: Use docopt.ParseDoc

docopt.Parse is deprecated. This patch updates the code to the newer
variant, ParseDoc, since the default options are what we want.

There are no functional changes.

cmd/chasquid-util/chasquid-util.go +1 -1

diff --git a/cmd/chasquid-util/chasquid-util.go b/cmd/chasquid-util/chasquid-util.go
index ced89ed..ab5eb7c 100644
--- a/cmd/chasquid-util/chasquid-util.go
+++ b/cmd/chasquid-util/chasquid-util.go
@@ -51,7 +51,7 @@ var (
 )
 
 func main() {
-	args, _ = docopt.Parse(usage, nil, true, "", false)
+	args, _ = docopt.ParseDoc(usage)
 
 	// Load globals.
 	if d, ok := args["--configdir"].(string); ok {