diff --git a/cmd/obp/cmd/validate.go b/cmd/obp/cmd/validate.go index 8a5383d..6392a0c 100644 --- a/cmd/obp/cmd/validate.go +++ b/cmd/obp/cmd/validate.go @@ -82,5 +82,6 @@ func init() { // rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") validateCmd.Flags().StringP("schema", "s", "base.schema", "path to protobuf file") validateCmd.Flags().StringP("target", "t", "", "directory containing validation targets") + validateCmd.MarkFlagsRequiredTogether("schema", "target") rootCmd.AddCommand(validateCmd) }