diff --git a/print.go b/print.go index 8e4e2f5c8..c47e52a4d 100644 --- a/print.go +++ b/print.go @@ -402,7 +402,11 @@ func printUpdateList(parser *arguments) error { if !parser.existsArg("m", "foreign") { for _, pkg := range repoUp { if noTargets || targets.get(pkg.Name) { - fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion)) + if parser.existsArg("q", "quiet") { + fmt.Printf("%s\n", pkg.Name) + } else { + fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion)) + } delete(targets, pkg.Name) } } @@ -411,7 +415,11 @@ func printUpdateList(parser *arguments) error { if !parser.existsArg("n", "native") { for _, pkg := range aurUp { if noTargets || targets.get(pkg.Name) { - fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion)) + if parser.existsArg("q", "quiet") { + fmt.Printf("%s\n", pkg.Name) + } else { + fmt.Printf("%s %s -> %s\n", bold(pkg.Name), green(pkg.LocalVersion), green(pkg.RemoteVersion)) + } delete(targets, pkg.Name) } }