mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-22 08:25:38 +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>
|
// -k <keywords>
|
||||||
if *flUseKeywords != "" {
|
if *flUseKeywords != "" {
|
||||||
currentKeywords = splitKeywordsArg(*flUseKeywords)
|
currentKeywords = splitKeywordsArg(*flUseKeywords)
|
||||||
|
if !inSlice("type", currentKeywords) {
|
||||||
|
currentKeywords = append([]string{"type"}, currentKeywords...)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
currentKeywords = mtree.DefaultKeywords[:]
|
currentKeywords = mtree.DefaultKeywords[:]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue