Skip to content

Commit

Permalink
Ensure flag is not blank
Browse files Browse the repository at this point in the history
  • Loading branch information
asahasrabuddhe committed Sep 11, 2019
1 parent f8bb66a commit fa858dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func checkRequiredFlags(flags []Flag, context *Context) requiredFlagsErr {
}
}

if !flagPresent {
if !flagPresent && flagName != "" {
missingFlags = append(missingFlags, flagName)
}
}
Expand Down

0 comments on commit fa858dc

Please sign in to comment.