mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user