With go mod get
…
With the exception of -h
or --help
as the one and only argument, all of the global flags will throw an error, regardless of their position on the command line.
Should we do something about this? Probably. Log an issue if you feel strongly about it.