Add support for dual long options when no short option#2312
Merged
shadowspawn merged 7 commits intotj:developfrom Jan 13, 2025
Merged
Add support for dual long options when no short option#2312shadowspawn merged 7 commits intotj:developfrom
shadowspawn merged 7 commits intotj:developfrom
Conversation
…d shortish option flag
This comment was marked as outdated.
This comment was marked as outdated.
abetomo
approved these changes
Jan 13, 2025
jelmore1674
pushed a commit
to jelmore1674/build-changelog
that referenced
this pull request
Mar 19, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [commander](https://github.com/tj/commander.js) | devDependencies | minor | [`13.0.0` -> `13.1.0`](https://renovatebot.com/diffs/npm/commander/13.0.0/13.1.0) | --- ### Release Notes <details> <summary>tj/commander.js (commander)</summary> ### [`v13.1.0`](https://github.com/tj/commander.js/blob/HEAD/CHANGELOG.md#1310-2025-01-21) [Compare Source](tj/commander.js@v13.0.0...v13.1.0) ##### Added - support a pair of long option flags to allow a memorable shortened flag, like `.option('--ws, --workspace')` (\[[#​2312](tj/commander.js#2312)]) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMTguMiIsInVwZGF0ZWRJblZlciI6IjM5LjEzMy40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://gitea.justinelmore.dev/jelmore1674/build-changelog/pulls/80 Co-authored-by: Renovate Bot <renovate-bot@forgejo.justinelmore.dev> Co-committed-by: Renovate Bot <renovate-bot@forgejo.justinelmore.dev>
raineorshine
added a commit
to raineorshine/npm-check-updates
that referenced
this pull request
Sep 29, 2025
raineorshine
added a commit
to raineorshine/npm-check-updates
that referenced
this pull request
Sep 29, 2025
raineorshine
added a commit
to raineorshine/npm-check-updates
that referenced
this pull request
Sep 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
#2270 throws an exception for unsupported option setups. This is picking up more variations than expected, and use of a short-ish form is more widespread than assumed (despite being at odds with the documented usage).
---gnu-style-hidden-option) no longer work in 13.0.0 #2309In particular, people want to have a multi-character shortish option.
Solution
The high level goals are still to restrict usage to supported formats, and follow standard conventions.
As per #2307 (comment)
So:
--ws, --workspaceChangeLog
.option('--ws, --workspace')