mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
update error message for output flag parsing
Co-authored-by: Alfredo Deza <adeza@anchore.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
9b7988178c
commit
246e47bc13
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ You can also pipe in Syft JSON directly:
|
|||
// set the presenter
|
||||
presenterOption := presenter.ParseOption(appConfig.Output)
|
||||
if presenterOption == presenter.UnknownPresenter {
|
||||
return fmt.Errorf("bad --output value '%s'", appConfig.Output)
|
||||
return fmt.Errorf("unsupported --output value '%s', supported values: %+v", appConfig.Output, presenter.Options)
|
||||
}
|
||||
presenterOpt = presenterOption
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue