summaryrefslogtreecommitdiff
path: root/complete.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-25 14:26:00 -0500
committerJeff Carr <[email protected]>2025-09-25 14:26:00 -0500
commit75e00bb33e47dec3372879866494f4e6cdc8f545 (patch)
treecdf230f189f0de40e889be909cac6dcbbb5de714 /complete.go
parent0f8eaec720a5a98d84242b431537dcc4c190c974 (diff)
more argv improvementsv0.0.16v0.0.15v0.0.14
Diffstat (limited to 'complete.go')
-rw-r--r--complete.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/complete.go b/complete.go
index e82510b..1607fe1 100644
--- a/complete.go
+++ b/complete.go
@@ -327,7 +327,11 @@ func Bash(dest any) *Auto {
// pb.Debugf("DEBUG: NO MATCH last='%s' found key '%s' = %s", pb.Last, key, val)
}
}
- myAuto.autoFunc(pb) // run the autocomplete function the user made for their application
+ if myAuto.autoFunc == nil {
+ pb.SubCommand(pb.Argv...)
+ } else {
+ myAuto.autoFunc(pb) // run the autocomplete function the user made for their application
+ }
if pb.Debug {
// TODO:
// check here to see if there was any completion text sent