Skip to content

fix(cli): allow argv to be overridden in bootstrap - #621

Merged
jimthedev merged 1 commit into
commitizen:masterfrom
fastfrwrd:argv-in-bootstrap
Apr 19, 2019
Merged

jimthedev merged 1 commit into
commitizen:masterfrom
fastfrwrd:argv-in-bootstrap

Conversation

@fastfrwrd

Copy link
Copy Markdown
Contributor

why: in case a consumer's CLI has extra arguments, allowing argv to be overridden without mutating the process.argv array directly would be useful.

In our application, we're manually maniuplating process.argv using methods like Array.prototype.splice to get around this, but we would definitely prefer to do this immutably instead and pass our final argv to you this way.

in case a consumer's CLI has extra arguments, allowing argv to be overridden without mutating the
process.argv array directly would be useful.
@jimthedev
jimthedev merged commit f7982d3 into commitizen:master Apr 19, 2019
@jimthedev

Copy link
Copy Markdown
Member

Looks good. Thanks.

@fastfrwrd
fastfrwrd deleted the argv-in-bootstrap branch April 19, 2019 16:17
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