From 6efbd57ecab944572dce512d1ce89c0433e7e111 Mon Sep 17 00:00:00 2001 From: mikcl Date: Fri, 2 Dec 2022 20:07:05 +0000 Subject: [PATCH] fixup! fixup! fixup! fixup: s/workers/parallelism Signed-off-by: mikcl --- cmd/syft/cli/options/packages.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/syft/cli/options/packages.go b/cmd/syft/cli/options/packages.go index 26cb6abb4636..00e5d85c97db 100644 --- a/cmd/syft/cli/options/packages.go +++ b/cmd/syft/cli/options/packages.go @@ -56,7 +56,9 @@ func (o *PackagesOptions) AddFlags(cmd *cobra.Command, v *viper.Viper) error { "number of workers to use to process the catalogers in parallel") // Lets not expose this as a cli option - cmd.Flags().MarkHidden("parallelism") + if err := cmd.Flags().MarkHidden("parallelism"); err != nil { + return err + } return bindPackageConfigOptions(cmd.Flags(), v) }