Skip to content

generate-help with a nonexistent subcommand fabricates a plausible help page #15

Description

@baijum

Summary

When find-command returns #f, generate-help app "name" silently falls back to the app's description and specs (lib/kaappi/cli.sld:233-246) while still printing the nonexistent sub-name in the header — producing a confident-looking page for a command that does not exist.

Repro

App with only the build command:

$ (generate-help app "nope")
t nope — T

Usage: t nope <command>

Commands:
  build                     B

Expected

An error (or at least the app-level help), not a fabricated subcommand page. Not reachable via run-cli (it only passes real command names), but generate-help is exported API.

Context

Found during a multi-agent code review (2026-09-06); confirmed empirically on Kaappi v0.26.2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditFound during systematic auditbugSomething isn't workingpriority: lowNice to have — fix when convenient

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions