Skip to content

Fix ndk-env help output#205

Merged
bbqsrc merged 1 commit into
bbqsrc:mainfrom
StantonMatt:fix-ndk-env-help
Jun 3, 2026
Merged

Fix ndk-env help output#205
bbqsrc merged 1 commit into
bbqsrc:mainfrom
StantonMatt:fix-ndk-env-help

Conversation

@StantonMatt

Copy link
Copy Markdown
Contributor

Fixes #195.

cargo-ndk-env was using the shared build command when handling early help flags, so cargo ndk-env -- --help showed build options instead of env output options like --json and --powershell. This changes the shared early-help path to print the command for the active binary and adds regression coverage for both --help and -- --help.

Verification:

  • cargo fmt --all -- --check
  • cargo test --test cli_help --locked
  • cargo test --locked
  • cargo clippy -- -D warnings
  • CARGO=1 cargo run --quiet --bin cargo-ndk-env -- --help
  • CARGO=1 cargo run --quiet --bin cargo-ndk-env -- -- --help
  • git diff --check HEAD~1..HEAD
  • project-local review-fix-loop completed with no actionable findings

Signed-off-by: Matthew Stanton <stantonmatthewj@gmail.com>
@bbqsrc bbqsrc merged commit a8eb3ba into bbqsrc:main Jun 3, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incomplete cargo-env help

2 participants