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:
Alex Goodman 2021-04-01 09:52:59 -04:00 committed by Alex Goodman
parent 9b7988178c
commit 246e47bc13
No known key found for this signature in database
GPG key ID: 5CB45AE22BAB7EA7

View file

@ -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