mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +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:
		 Calvin Leung Huang
					Calvin Leung Huang
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						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 := mssql.Run(apiClientMeta.GetTLSConfig()) | ||||
| 	if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user