Skip to content

Fix build.sh num-procs help text#2699

Merged
TobyRoseman merged 1 commit into
apple:mainfrom
LeSingh1:fix-build-num-procs-help
May 18, 2026
Merged

Fix build.sh num-procs help text#2699
TobyRoseman merged 1 commit into
apple:mainfrom
LeSingh1:fix-build-num-procs-help

Conversation

@LeSingh1
Copy link
Copy Markdown
Contributor

Summary

scripts/build.sh --help documents the option as --num_procs, but the argument parser only accepts --num-procs (see scripts/build.sh:53). A user copy-pasting from --help hits the unknown_option branch and the script exits.

This corrects the documented spelling to match the accepted spelling. One-character change.

Refs #2376 (build-script item 1).

Test plan

  • bash -n scripts/build.sh — syntax OK
  • bash scripts/build.sh --help — now prints --num-procs=n (default 1)
  • grep "num_procs\|num-procs" scripts/build.sh — both lines now use --num-procs

Scope

Intentionally narrow. This PR does not modernize CMake, change NumPy pins, refactor Python detection, or touch any other item from #2376 — those need separate discussion.

The --help output documented the option as --num_procs but the parser
only accepts --num-procs (build.sh:53). Update the help text to match
the accepted spelling so users following --help don't hit
"Unknown option".

Refs apple#2376
@TobyRoseman TobyRoseman merged commit cb86ea1 into apple:main May 18, 2026
@TobyRoseman
Copy link
Copy Markdown
Collaborator

Thanks for the contribution @LeSingh1

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.

2 participants