We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccba1a0 commit dcc1d2fCopy full SHA for dcc1d2f
cli/core/upgrade.go
@@ -71,10 +71,12 @@ func runUpgradeCommand(cmd *cobra.Command, args []string) {
71
}
72
73
// proceed upgrading, if anything is upgradable
74
+ exitErr := false
75
platformsRefs := parsePlatformReferenceArgs(args)
76
for i, platformRef := range platformsRefs {
77
if platformRef.Version != "" {
78
formatter.PrintErrorMessage(("Invalid item " + args[i]))
79
+ exitErr = true
80
continue
81
82
@@ -92,4 +94,8 @@ func runUpgradeCommand(cmd *cobra.Command, args []string) {
92
94
os.Exit(errorcodes.ErrGeneric)
93
95
96
97
+
98
+ if exitErr {
99
+ os.Exit(errorcodes.ErrBadArgument)
100
+ }
101
0 commit comments