Skip to content

Commit

Permalink
fixed flag check
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Mar 27, 2024
1 parent eea7fb2 commit be2397c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions options/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ func (ro *RunOptions) AddFlags(cmd *cobra.Command) {
cmd.Flags().BoolVar(&ro.Tracing, "trace", false, "Enable tracing for the command")
cmd.Flags().StringSliceVar(&ro.TimestampServers, "timestamp-servers", []string{}, "Timestamp Authority Servers to use when signing envelope")

for _, flag := range RequiredRunFlags {
cmd.MarkFlagRequired(flag)
}
cmd.MarkFlagsRequiredTogether(RequiredRunFlags...)

attestationRegistrations := attestation.RegistrationEntries()
ro.AttestorOptSetters = addFlagsFromRegistry("attestor", attestationRegistrations, cmd)
Expand Down

0 comments on commit be2397c

Please sign in to comment.