Ensure flag is not blank

This commit is contained in:
Ajitem Sahasrabuddhe 2019-09-11 15:10:14 +05:30
parent f8bb66ae7d
commit fa858dcc26
No known key found for this signature in database
GPG Key ID: 5B0EE10DAA76876C

View File

@ -325,7 +325,7 @@ func checkRequiredFlags(flags []Flag, context *Context) requiredFlagsErr {
}
}
if !flagPresent {
if !flagPresent && flagName != "" {
missingFlags = append(missingFlags, flagName)
}
}