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:
commit
c5ff3d1703
1 changed files with 3 additions and 0 deletions
|
@ -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[:]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue