// ParseOperatorKind converts string (flag name list concat by ',') to OpKind.
ParseOperatorKind converts string (flag name list concat by ',') to OpKind.
// ParseOperatorKind converts string ( flag name list concat by ' ' ) to OpKind .
func ParseOperatorKind(str string) (OpKind, error) {
	var k OpKind
	for _, flagName := range strings.Split(str, ",") {
		flag, ok := nameToFlag[flagName]
		if !ok {
			return 0, errors.Errorf("unknown flag name: %s", flagName)
		}
		k |= flag
	}
	return k, nil
}
func ParseOperatorKind ( str string ) ( OpKind , error ) { var k OpKind for _ , flagName := range strings . Split ( str , " " ) { flag , ok := nameToFlag [ flagName ] if ! ok { return 0 , errors . Errorf ( " " , flagName ) } k |= flag } return k , nil }
ParseOperatorKind converts string (flag name list concat by ',') to OpKind.
ParseOperatorKind converts string ( flag name list concat by ' ' ) to OpKind .