From be2397cce94db5c9d0fbd104c16cbe61c7905d74 Mon Sep 17 00:00:00 2001 From: chaosinthecrd Date: Wed, 27 Mar 2024 15:17:47 +0000 Subject: [PATCH] fixed flag check Signed-off-by: chaosinthecrd --- options/run.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/options/run.go b/options/run.go index 77f40ddb..b4585969 100644 --- a/options/run.go +++ b/options/run.go @@ -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)