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>
if *flAddKeywords != "" {
currentKeywords = append(currentKeywords, splitKeywordsArg(*flAddKeywords)...)
for _, kw := range splitKeywordsArg(*flAddKeywords) {
if !inSlice(kw, currentKeywords) {
currentKeywords = append(currentKeywords, kw)
}
}
}
// -f <file>