Skip to content

Commit

Permalink
update error message for output flag parsing
Browse files Browse the repository at this point in the history
Co-authored-by: Alfredo Deza <adeza@anchore.com>

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
  • Loading branch information
wagoodman committed Apr 1, 2021
1 parent 7fdf7f2 commit d11185c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Expand Up @@ -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
Expand Down

0 comments on commit d11185c

Please sign in to comment.