Skip to content

Commit

Permalink
mark persistent flag required (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenleach authored Jul 17, 2024
1 parent 95bc6b2 commit 05e2123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func DefineConfiguration(
return nil, nil, fmt.Errorf("requiring %s of type %s does not make sense", field.FieldName, field.FieldType)
}

err := mainCMD.MarkFlagRequired(field.FieldName)
err := mainCMD.MarkPersistentFlagRequired(field.FieldName)
if err != nil {
return nil, nil, fmt.Errorf(
"cannot require field %s, %s: %w",
Expand Down

0 comments on commit 05e2123

Please sign in to comment.