Skip to content

fix(commander): match commander options scope behavior in different modes - #155

Open
AmirSa12 wants to merge 2 commits into
mainfrom
fix/commander-parser
Open

AmirSa12 wants to merge 2 commits into
mainfrom
fix/commander-parser

Conversation

@AmirSa12

@AmirSa12 AmirSa12 commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

related to the discussions in #154

@pkg-pr-new

pkg-pr-new Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@bomb.sh/tab@155

commit: 4564f99

@changeset-bot

changeset-bot Bot commented Oct 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4564f99

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@AmirSa12

Copy link
Copy Markdown
Member Author

A one-time behavioral probe could also work i think.
@shadowspawn any thoughts?

@shadowspawn

shadowspawn commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

A one-time behavioral probe could also work i think.

Do you mean to avoid accessing the private _enablePositionalOptions property? I think what you have done with an explicit pattern for accessing the private property (CommandWithPositionalOptions) is good enough for now.

I'll think about how to expose this state, but it will of course only be usable in new versions. There isn't a strong reason for having this state/property private. (I tend to make new properties private until there is a demand for them, to simplify internal changes and keep the API smaller.)

@shadowspawn

Copy link
Copy Markdown
Contributor

Thanks for working on this! Would you like a review?

@AmirSa12

Copy link
Copy Markdown
Member Author

Thanks for working on this! Would you like a review?

Yes, please!🙌🏼
Thanks you!

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