Skip to content

refactor(convert-args): remove unused arguments#253

Merged
evenstensberg merged 2 commits into
webpack:masterfrom
sendilkumarn:convert-args-signature-change
Jan 30, 2018
Merged

refactor(convert-args): remove unused arguments#253
evenstensberg merged 2 commits into
webpack:masterfrom
sendilkumarn:convert-args-signature-change

Conversation

@sendilkumarn

Copy link
Copy Markdown
Contributor

fixes #250

Comment thread bin/convert-argv.js
var prepareOptions = require("./prepareOptions");
module.exports = function(yargs, argv, convertOptions) {
module.exports = function(...args) {
var argv = args[1] || args[0];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont want to change the var this needs to be handled across the cli 👍

@webpack-bot

Copy link
Copy Markdown

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@ematipico ematipico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove yargs from bin/webpack.js L223, and bin/processOptions.js L12? Its unused anyways.

@webpack-bot

Copy link
Copy Markdown

@sendilkumarn Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@ev1stensberg Please review the new changes.

@sendilkumarn

Copy link
Copy Markdown
Contributor Author

@ev1stensberg Good catch 👍

@evenstensberg evenstensberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

convert-args signature contains unused parameters

5 participants