diff --git a/cmd/search.go b/cmd/search.go index e2ff759..34d134c 100644 --- a/cmd/search.go +++ b/cmd/search.go @@ -33,6 +33,7 @@ var searchCmd = &cobra.Command{ Short: "Search an LDAP directory", Long: `Perform an LDAP search operation on an LDAP directory`, Run: func(cmd *cobra.Command, args []string) { + // create slice of attributes var attrs []string = nil if flagAttrs != "" { attrs = strings.Split(flagAttrs, ",")