mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Fix flag parsing on database plugins, exit on parse error (#3305)
* Change FlagSet error handling to flag.ExitOnError * Ignore os.Args[0] (the command itself) when parsing flags * Revert to using flag.ContinueOnError
This commit is contained in:
committed by
GitHub
parent
cc536c2cf4
commit
ced217e699
@@ -11,7 +11,7 @@ import (
|
||||
func main() {
|
||||
apiClientMeta := &pluginutil.APIClientMeta{}
|
||||
flags := apiClientMeta.FlagSet()
|
||||
flags.Parse(os.Args)
|
||||
flags.Parse(os.Args[1:])
|
||||
|
||||
err := mysql.RunLegacy(apiClientMeta.GetTLSConfig())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user