cmd/cli: ignore invalid flags for "ctrld run"

This commit is contained in:
Cuong Manh Le
2023-12-16 00:15:02 +07:00
committed by Cuong Manh Le
parent 44484e1231
commit 22e97e981a

View File

@@ -146,6 +146,7 @@ func initCLI() {
_ = runCmd.Flags().MarkHidden("iface")
runCmd.Flags().StringVarP(&cdUpstreamProto, "proto", "", ctrld.ResolverTypeDOH, `Control D upstream type, either "doh" or "doh3"`)
runCmd.FParseErrWhitelist = cobra.FParseErrWhitelist{UnknownFlags: true}
rootCmd.AddCommand(runCmd)
startCmd := &cobra.Command{