From 0c71bf23c51e3fc77ae115dc4a6148cb5b94bea3 Mon Sep 17 00:00:00 2001 From: William Murphy Date: Thu, 10 Oct 2024 13:11:45 -0400 Subject: [PATCH] docs: clearer deprecation message for --file (#3310) It's not clear to users that they shoudl use --output FORMAT=PATH instead of --file. Directly suggest the FORMAT=PATH syntax. Signed-off-by: Will Murphy --- cmd/syft/internal/options/output_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syft/internal/options/output_file.go b/cmd/syft/internal/options/output_file.go index cf8e5632b..64e7abb39 100644 --- a/cmd/syft/internal/options/output_file.go +++ b/cmd/syft/internal/options/output_file.go @@ -28,7 +28,7 @@ func (o *OutputFile) AddFlags(flags clio.FlagSet) { if pfp, ok := flags.(fangs.PFlagSetProvider); ok { flagSet := pfp.PFlagSet() - flagSet.Lookup("file").Deprecated = "use: output" + flagSet.Lookup("file").Deprecated = "use: --output FORMAT=PATH" } } }