Skip to content

Conversation

ink-splatters
Copy link

@ink-splatters ink-splatters commented Oct 11, 2024

One of commits introduced changes in how statix cli options are generated.

Fix attempt #506 was merged however it fails to resolve the issue, also, IMHO, adding unnecessary complexity, duplicating lib.cli functionality

@sandydoo as #506 author, feel free to kindly comment if those changes are fine with you.

@sandydoo
Copy link
Member

Oh, the empty case was broken. But this is now equally broken for the non-empty case. We still need the reverted commit, in addition to an empty check.

Maybe we should just go back to mkCmdArgs until this function matures.
And, oh god, do we need a test harness 😂

@sandydoo sandydoo added the bug Something isn't working label Oct 11, 2024
@sandydoo
Copy link
Member

Merged #510 with the empty-case fix.

We still need mkOptionName for the option and lib.cli doesn't expose it, so we're stuck with this.

@sandydoo sandydoo closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants