diff --git a/cmd/deploytargetconfig.go b/cmd/deploytargetconfig.go index d4f20b28..ad0dfcf8 100644 --- a/cmd/deploytargetconfig.go +++ b/cmd/deploytargetconfig.go @@ -44,6 +44,12 @@ var addDeployTargetConfigCmd = &cobra.Command{ return err } + if cmdProjectName == "" { + return fmt.Errorf("Missing arguments: project is a required flag") + } + if deploytarget == 0 { + return fmt.Errorf("Missing arguments: deploytarget id is a required flag") + } if pullrequests == "" { return fmt.Errorf("Missing arguments: pullrequests is a required flag") }