1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-11-22 16:25:38 +00:00

Merge pull request #39 from stephen679/no_duplicate_keywords

main: don't dupliate keywords
This commit is contained in:
Vincent Batts 2016-07-26 11:35:43 -04:00 committed by GitHub
commit e31036f7e3

View file

@ -102,7 +102,11 @@ func main() {
} }
// -K <keywords> // -K <keywords>
if *flAddKeywords != "" { if *flAddKeywords != "" {
currentKeywords = append(currentKeywords, splitKeywordsArg(*flAddKeywords)...) for _, kw := range splitKeywordsArg(*flAddKeywords) {
if !inSlice(kw, currentKeywords) {
currentKeywords = append(currentKeywords, kw)
}
}
} }
// -f <file> // -f <file>