From 6be36326bb1f012efa1f6ab19159608b71983f2c Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Tue, 6 Jun 2023 16:06:03 -0400 Subject: [PATCH] More sanity stuff --- cmd/obp/cmd/validate.go | 1 + 1 file changed, 1 insertion(+) 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) }