diff --git a/pkg/generic/thrift/parse_option.go b/pkg/generic/thrift/parse_option.go index 0bd95220aa..9fffd321a2 100644 --- a/pkg/generic/thrift/parse_option.go +++ b/pkg/generic/thrift/parse_option.go @@ -41,6 +41,8 @@ func WithGoTagDisabled(disable bool) ParseOption { }} } +// WithIDLServiceName specifies the target IDL service to be parsed. +// NOTE: with this option, the specified service is prioritized and parse mode will be ignored. func WithIDLServiceName(serviceName string) ParseOption { return ParseOption{F: func(opt *parseOptions) { opt.serviceName = serviceName