Also -no-upgrade with any command

This commit is contained in:
Jakob Borg 2014-11-17 19:02:41 +04:00
parent ddd2759cec
commit 45917f278a
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ func main() {
checkRequiredGoVersion()
if flag.NArg() == 0 {
install("./cmd/...", nil)
var tags []string
if noupgrade {
tags = []string{"noupgrade"}
}
install("./cmd/...", tags)
return
}