feat: replace names spec with separate name and short arguments - #8
Merged
Conversation
bhirsz
force-pushed
the
feat/name-short-api
branch
from
August 28, 2026 12:43
184f7ed to
3d923f4
Compare
bhirsz
force-pushed
the
feat/name-short-api
branch
from
August 28, 2026 12:46
3d923f4 to
f918ca3
Compare
Options are now named with two explicit arguments instead of the packed "--long/-s" spec: * name= sets the long option name without dashes (e.g. name="console" -> --console). Derived from the method name when omitted. * short= sets the single-character short name (e.g. short="c" -> -c). Auto-derived from the first letter only when name is not given, so an explicit name opts out of the implicit short. Migration (pre-1.0, no stability guarantees yet): replace names="--console/-c" with name="console", short="c". Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bhirsz
force-pushed
the
feat/name-short-api
branch
from
August 28, 2026 12:47
f918ca3 to
c014342
Compare
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.
Stacked on #7.
Replaces the packed
names="--long/-s"spec with two explicit arguments:name=— the long option name without dashes (derived from the method name when omitted)short=— the single-character short name (auto-derived from the first letter only whennameis not given)Passing
nameopts out of the implicit short; addshort=to keep one.Migration (pre-1.0)
Replace
names="--console/-c"withname="console", short="c".Sets up the follow-up PR that adds declarative
option(name=..., help=...)class attributes.