mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-03 11:15:54 +00:00
Add aliases/flags for version. Closes #855.
This commit is contained in:
@@ -77,7 +77,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
if args[1] != "version" && args[1] != "--version" && args[1] != "v" {
|
||||
if args[1] != "version" && args[1] != "--version" && args[1] != "v" && args[1] != "-v" && args[1] != "--v" {
|
||||
setup()
|
||||
}
|
||||
|
||||
@@ -107,6 +107,10 @@ func main() {
|
||||
fmt.Println(NvmVersion)
|
||||
case "--version":
|
||||
fallthrough
|
||||
case "--v":
|
||||
fallthrough
|
||||
case "-v":
|
||||
fallthrough
|
||||
case "version":
|
||||
fmt.Println(NvmVersion)
|
||||
case "arch":
|
||||
|
Reference in New Issue
Block a user