Open caldwell opened 6 years ago
I just ran into this, so now my go.mod
looks like this:
module github.com/username/project-name
require (
github.com/caldwell/docopt.go v0.0.0-20180924233533-871d90846fc3
)
and my go file looks like this:
package main
import (
docopt "github.com/caldwell/docopt.go"
)
When there is a bad option, docopt-go silently prints the usage and gives no indication of which option(s) it didn't like. It's very confusing when a program with a lot of options has a command line with one of them misspelled.
This patch complains about unknown options instead of silently printing the usage.