Update error message for missing required flags (#580)

Make it so that first letter is not capitalized and rephrase
to remove "have/has".
This commit is contained in:
Nick Miyake
2017-11-19 01:22:51 -08:00
committed by Albert Nigmatzianov
parent 34ceca591b
commit 19e54c4a2b
2 changed files with 3 additions and 3 deletions

View File

@ -827,7 +827,7 @@ func (c *Command) validateRequiredFlags() error {
})
if len(missingFlagNames) > 0 {
return fmt.Errorf(`Required flag(s) "%s" have/has not been set`, strings.Join(missingFlagNames, `", "`))
return fmt.Errorf(`required flag(s) "%s" not set`, strings.Join(missingFlagNames, `", "`))
}
return nil
}