Skip to content

Commit

Permalink
Fixed bug in nil flags+
Browse files Browse the repository at this point in the history
  • Loading branch information
memclutter committed Jan 8, 2022
1 parent 23ab82f commit a1d1af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/corecli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func GenerateCommands(i interface{}) (cli.Commands, error) {

command.Before = func(c *cli.Context) error {
// Default initialization
if !flagsFieldValueOf.IsZero() && !flagsFieldValueOf.IsNil() && flagsFieldValueOf.IsValid() {
if flagsFieldValueOf.IsValid() {
if err := LoadFlags(flagsFieldValueOf, c); err != nil {
return err
}
Expand Down

0 comments on commit a1d1af7

Please sign in to comment.