diff options
| author | Jeff Carr <[email protected]> | 2025-10-12 06:17:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-12 06:17:32 -0500 |
| commit | cc600fe686e905a696cbc840decdd8d24b7bb72f (patch) | |
| tree | 554d5f681be526406cb0ee826f85ce7257ada80b /theMagicOfAutocomplete.go | |
| parent | a21a55ea6679b9e97ed1a51ac80e71c5d9770607 (diff) | |
more cleaning
Diffstat (limited to 'theMagicOfAutocomplete.go')
| -rw-r--r-- | theMagicOfAutocomplete.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go index d28dd8b..3202af3 100644 --- a/theMagicOfAutocomplete.go +++ b/theMagicOfAutocomplete.go @@ -31,7 +31,14 @@ func Autocomplete(dest any) *Auto { pb.PrintDebug() } - pb.getHistoryPB() // read in the history protobuf file + all, err := pb.getHistoryPB() // read in the history protobuf file + if err != nil { + // there is no history + } + + if pb.Debug { + all.PrintHistory() + } // turn on debugging if duration < 200 milliseconds dur := pb.Duration.AsDuration() @@ -50,7 +57,6 @@ func Autocomplete(dest any) *Auto { } // pb.Debug = true // pb.Debugf("DEBUG: MustParse(%v)", flags) - var err error myAuto.pp, err = arg.ParseFlags(flags, dest) if err != nil { pb.Debugf("DEBUG: Parse error: %v", err) |
