diff --git a/cmd/get.go b/cmd/get.go index 9327d15f..1498ebe0 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -16,6 +16,7 @@ func getCMDs() *cobra.Command { } getCMDsFlags(getCmd) + getHQCmdFlags(getHQCmd) getCmd.AddCommand(getURLCmd) getCmd.AddCommand(getHQCmd) diff --git a/cmd/get_hq.go b/cmd/get_hq.go index 764a2a5c..f38ced97 100644 --- a/cmd/get_hq.go +++ b/cmd/get_hq.go @@ -54,4 +54,9 @@ func getHQCmdFlags(getHQCmd *cobra.Command) { getHQCmd.PersistentFlags().Bool("hq-continuous-pull", false, "If turned on, the crawler will pull URLs from Crawl HQ continuously.") getHQCmd.PersistentFlags().String("hq-strategy", "lifo", "Crawl HQ feeding strategy.") getHQCmd.PersistentFlags().Bool("hq-rate-limiting-send-back", false, "If turned on, the crawler will send back URLs that hit a rate limit to crawl HQ.") + + getHQCmd.MarkPersistentFlagRequired("hq-address") + getHQCmd.MarkPersistentFlagRequired("hq-key") + getHQCmd.MarkPersistentFlagRequired("hq-secret") + getHQCmd.MarkPersistentFlagRequired("hq-project") }