summaryrefslogtreecommitdiff
path: root/internal/askcli/dispatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/askcli/dispatch.go')
-rw-r--r--internal/askcli/dispatch.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/askcli/dispatch.go b/internal/askcli/dispatch.go
index 974ceea..eab793b 100644
--- a/internal/askcli/dispatch.go
+++ b/internal/askcli/dispatch.go
@@ -53,6 +53,11 @@ func (d *Dispatcher) Dispatch(ctx context.Context, args []string, stdin io.Reade
}
subcommand := args[0]
entry, ok := commandRegistry.get(subcommand)
+ if !ok && scope != taskScopeAgent {
+ args = append([]string{"add"}, args...)
+ subcommand = "add"
+ entry, ok = commandRegistry.get(subcommand)
+ }
if !ok {
return d.unknownCommand(stderr, subcommand)
}