Skip to content

Unbound splat arguments, fixes GH-54 - #59

Open
amireh wants to merge 2 commits into
masterfrom
unbounded-splats
Open

Unbound splat arguments, fixes GH-54#59
amireh wants to merge 2 commits into
masterfrom
unbounded-splats

Conversation

@amireh

Copy link
Copy Markdown
Collaborator

Unfortunately, this is a breaking change and requires a major release.
The patch makes it so that we no longer reject more than 999 repetitions
for a splat argument, and that by default we allow for unlimited
arguments (maxcount=0 or nil) instead of 1.

amirehand others added 2 commits December 18, 2023 18:19
BREAKING CHANGE: The default maxcount value for SPLAT arguments is now
unlimited. The previous default was 1. That was unexpected for many
folks and arguably wrong, but fixing it is a major breaking change and
consumers will need to adjust, hence the major version bump. The old
behaviour can be achieved by setting the maxcount to 1 again:
cli:splat('MY_SPLAT', 'Description', nil, 1)
Additionally a limit of 999 has been resolved so unlimited arguments can
be accepted.
@Tieske

Copy link
Copy Markdown
Member

@amireh since we have a breaking change staged for release, we might as well add this one.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants

@amireh@Tieske@alerque