Skip to content

wheels upgrade --help advertises --to and --dry-run flags that the command doesn't support #2629

@bpamiri

Description

@bpamiri

Describe the bug

Running wheels upgrade --help:

Usage: wheels upgrade [--to=<version>] [--dry-run]

Upgrade the Wheels framework version in your project (vendor/wheels/).

Options:
  --to=<version>    Target version (default: latest stable)
  --dry-run         Print what would change without applying

Then running wheels upgrade --dry-run (or wheels upgrade --to=4.0.0):

Usage: wheels upgrade check [--to=<version>]

Scans your app for breaking changes between versions.
Does not perform the upgrade — use 'brew upgrade wheels' for that.

The two outputs disagree on:

  • The subcommand surface (--help says no subcommand needed; reality requires check)
  • The flag set (--help advertises --to and --dry-run; reality only honors --to after check)
  • What the command does (--help says "upgrade"; reality says "scan only, use brew for upgrade")

To Reproduce

wheels upgrade --help            # documents an "upgrade" command with --to and --dry-run
wheels upgrade --dry-run         # actually says "Usage: wheels upgrade check [--to=<version>]"
wheels upgrade --to=4.0.0        # same

Expected behavior

--help output matches the actual command behavior. Either:

  1. Rewrite --help to describe the check subcommand and tell users to brew upgrade wheels for the install side, OR
  2. Implement the upgrade flow that --help already describes — --to=<version> to bump vendor/wheels/, --dry-run to preview, etc.

Source

cli/lucli/Module.cfc — the upgrade() function around line 2357. The --help doc-comment block and the runtime dispatcher disagree.

Environment

  • Wheels CLI: 4.0.0-SNAPSHOT+1779

🤖 Filed by Claude Code while assisting with a 4.0 upgrade testbed

Metadata

Metadata

Assignees

No one assigned

    Labels

    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