Making prefix matching opt in.

This commit is contained in:
spf13
2014-10-07 16:15:19 -04:00
parent c2c23ac0bd
commit b1e90a7943
3 changed files with 20 additions and 1 deletions

View File

@ -27,6 +27,10 @@ import (
var initializers []func()
// automatic prefix matching can be a dangerous thing to automatically enable in CLI tools.
// Set this to true to enable it
var EnablePrefixMatching bool = false
func OnInitialize(y ...func()) {
for _, x := range y {
initializers = append(initializers, x)