Skip to content

Commit

Permalink
docs: clearer deprecation message for --file (#3310)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
willmurphyscode authored Oct 10, 2024
1 parent b62b0cb commit 0c71bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/syft/internal/options/output_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down

0 comments on commit 0c71bf2

Please sign in to comment.