Skip to content

adf subcommand --help falls back to root help instead of subcommand docs #240

Description

@stackbilt-admin

Problem

Running charter adf <subcommand> --help (e.g. charter adf sync --help, charter adf migrate --help) renders the root charter --help output rather than documentation for the subcommand.

The actual per-subcommand docs are only accessible by running charter adf with no arguments.

Reproduction

$ charter adf migrate --help
# → outputs root charter --help

$ charter adf sync --help  
# → outputs root charter --help

$ charter adf
# → outputs the correct subcommand reference (migrate, sync, fmt, patch, etc.)

Expected behavior

charter adf <subcommand> --help should output the specific documentation for that subcommand — equivalent to the relevant block from charter adf.

Alternatively, charter adf --help could output the full subcommand reference (which charter adf currently does).

Impact

Discoverability friction: the natural discovery path (command --help) doesn't work for ADF subcommands. Users hitting this for the first time won't find the docs until they run the bare charter adf form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationpriority:p2Nice to have this cycle

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions