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

Merge pull request #23 from stephen679/dir_indentation

main: 'type' keyword should always be evaluated
This commit is contained in:
Vincent Batts 2016-07-19 08:51:40 +09:00 committed by GitHub
commit c5ff3d1703

View file

@ -47,6 +47,9 @@ func main() {
// -k <keywords>
if *flUseKeywords != "" {
currentKeywords = splitKeywordsArg(*flUseKeywords)
if !inSlice("type", currentKeywords) {
currentKeywords = append([]string{"type"}, currentKeywords...)
}
} else {
currentKeywords = mtree.DefaultKeywords[:]
}