diff options
Diffstat (limited to 'theMagicOfAutocomplete.go')
| -rw-r--r-- | theMagicOfAutocomplete.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go index dd75a23..3bc32f0 100644 --- a/theMagicOfAutocomplete.go +++ b/theMagicOfAutocomplete.go @@ -18,6 +18,7 @@ import ( ) func Autocomplete(dest any) *Argv { + var err error me = new(AutoArgs) // todo: redo this me.pb = new(Argv) @@ -41,7 +42,7 @@ func Autocomplete(dest any) *Argv { // loads the argv autocomplete history file all := NewArgvs() fullname := config.MakeCacheFilename("argv", me.pb.AppInfo.APPNAME) - err := config.LoadFromFilename(all, fullname) + err = config.LoadFromFilename(all, fullname) if err != nil { // there is no history. // todo: initialize the history file |
