mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
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 <willmurphyscode@users.noreply.github.com>
This commit is contained in:
parent
b62b0cb800
commit
0c71bf23c5
@ -28,7 +28,7 @@ func (o *OutputFile) AddFlags(flags clio.FlagSet) {
|
|||||||
|
|
||||||
if pfp, ok := flags.(fangs.PFlagSetProvider); ok {
|
if pfp, ok := flags.(fangs.PFlagSetProvider); ok {
|
||||||
flagSet := pfp.PFlagSet()
|
flagSet := pfp.PFlagSet()
|
||||||
flagSet.Lookup("file").Deprecated = "use: output"
|
flagSet.Lookup("file").Deprecated = "use: --output FORMAT=PATH"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user