mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-21 17:17:15 +02:00
Suppress usage upon Run error
I changed RunE to Run so that usage wouldn't show upon error. Usage will still show if PersistentPreRunE fails, which makes sense since those functions check to make sure arguments passed in are valid. Also changed logging of multi arg flags to Debugf so that output would be cleaner.
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ func (b *multiArg) String() string {
|
||||
|
||||
// The second method is Set(value string) error
|
||||
func (b *multiArg) Set(value string) error {
|
||||
logrus.Infof("appending to multi args %s", value)
|
||||
logrus.Debugf("appending to multi args %s", value)
|
||||
*b = append(*b, value)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user