diff --git a/subcommands/targets/show.go b/subcommands/targets/show.go index 11422161..cfaab577 100644 --- a/subcommands/targets/show.go +++ b/subcommands/targets/show.go @@ -3,6 +3,7 @@ package targets import ( "encoding/base64" "encoding/json" + "errors" "fmt" "os" "path/filepath" @@ -210,6 +211,10 @@ func doShowComposeApp(cmd *cobra.Command, args []string) { } func getTargets(factory string, prodTag string, version string) ([]string, map[string]string, map[string]client.TufCustom) { + if len(version) == 0 { + subcommands.DieNotNil(errors.New("Missing required argument ")) + } + var targets tuf.Files var prodMeta *client.AtsTufTargets