Skip to content

Make command help order-independent and consistently successful #34

Closed

Description

@LunaStev

Problem

Help succeeds only for a narrow exact argument shape. Verified examples on master:

  • vex build --help exits successfully.
  • vex build --release --help exits with code 1 and prints error: usage: ....
  • vex fetch --locked --help exits with code 1.
  • vex tree --offline --help reports --help as an unknown option.

This is inconsistent across commands and makes shell integrations unreliable.

Expected behavior

A command-local -h or --help should display that command help on stdout and exit successfully without reading a manifest or mutating the project.

Acceptance criteria

  • Support help in any option position for every command.
  • Use exit code 0 and stdout for requested help.
  • Keep malformed invocations and unknown options on stderr with a nonzero code.
  • Do not initialize, resolve, fetch, or create directories while handling help.
  • Add a table-driven integration test covering every command and mixed option ordering.

Activity

  1. added
    bug
    ui/ux
    on Sep 18, 2026
  2. self-assigned this
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugui/ux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions