diff --git a/pkg/commands/app.go b/pkg/commands/app.go index 88738cca08..f445840eee 100644 --- a/pkg/commands/app.go +++ b/pkg/commands/app.go @@ -247,7 +247,7 @@ func NewImageCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command { $ trivy image --format json --output result.json alpine:3.15 # Generate a report in the CycloneDX format - $ trivy image --format cyclonedx --output result.cdx --security-checks none alpine:3.15`, + $ trivy image --format cyclonedx --output result.cdx alpine:3.15`, // 'Args' cannot be used since it is called before PreRunE and viper is not configured yet. // cmd.Args -> cannot validate args here