mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Accept -version too
This commit is contained in:
		| @@ -15,7 +15,7 @@ func RunCustom(args []string, commands map[string]cli.CommandFactory) int { | |||||||
| 	// Get the command line args. We shortcut "--version" and "-v" to | 	// Get the command line args. We shortcut "--version" and "-v" to | ||||||
| 	// just show the version. | 	// just show the version. | ||||||
| 	for _, arg := range args { | 	for _, arg := range args { | ||||||
| 		if arg == "-v" || arg == "--version" { | 		if arg == "-v" || arg == "-version" || arg == "--version" { | ||||||
| 			newArgs := make([]string, len(args)+1) | 			newArgs := make([]string, len(args)+1) | ||||||
| 			newArgs[0] = "version" | 			newArgs[0] = "version" | ||||||
| 			copy(newArgs[1:], args) | 			copy(newArgs[1:], args) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Seth Vargo
					Seth Vargo