Skip to content

Conversation

@tydeu
Copy link
Member

@tydeu tydeu commented Dec 1, 2025

This PR moves the processing of options passed to the CLI from shell.cpp to Shell.lean.

As with previous ports, this attempts to mirror as much of the original behavior as possible, Benefits to be gained from the ported code can come in later PRs. There should be no significant behavioral changes from this port. Nonetheless, error reporting has changed some, hopefully for the better. For instance, errors for improper argument configurations has been made more consistent (e.g., Lean will now error if numeric arguments fall outside the expected range for an option).

(Redo of #11345 to fix Windows issue.)

@tydeu tydeu added the release-ci Enable all CI checks for a PR, like is done for releases label Dec 1, 2025
@tydeu tydeu changed the title Port shell process opt v2 refactor: port shell option processing to Lean (v2) Dec 1, 2025
@tydeu tydeu force-pushed the port-shell-process-opt-v2 branch from 9000508 to 1ef7092 Compare December 1, 2025 15:24
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Dec 1, 2025
@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2025-12-01 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2025-12-01 18:16:10)

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Dec 1, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Dec 1, 2025
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Dec 1, 2025
@tydeu tydeu marked this pull request as ready for review December 1, 2025 20:53
@tydeu tydeu requested a review from Kha as a code owner December 1, 2025 20:53
@tydeu tydeu added this pull request to the merge queue Dec 2, 2025
Merged via the queue into leanprover:master with commit 7983883 Dec 2, 2025
29 checks passed
@tydeu tydeu deleted the port-shell-process-opt-v2 branch December 2, 2025 19:59
algebraic-dev pushed a commit that referenced this pull request Dec 8, 2025
This PR moves the processing of options passed to the CLI from
`shell.cpp` to `Shell.lean`.

As with previous ports, this attempts to mirror as much of the original
behavior as possible, Benefits to be gained from the ported code can
come in later PRs. There should be no significant behavioral changes
from this port. Nonetheless, error reporting has changed some, hopefully
for the better. For instance, errors for improper argument
configurations has been made more consistent (e.g., Lean will now error
if numeric arguments fall outside the expected range for an option).

(Redo of #11345 to fix Windows issue.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR release-ci Enable all CI checks for a PR, like is done for releases toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants