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
1 changed files with 3 additions and 0 deletions

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[:]
}