You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug #1255 brought a better way to handle unknown flags by showing up the available options and asking the user to pick what they required. Everything works well except that it fails to supply the chosen args further up.
What is the current behavior? cli-executer won't supply the chosen args since it fails to recognize runCLI() as a function.
To Reproduce
An interactive prompt shows up with all of the available cli-flags if the user makes a typo.
Say, webpack-cli --entyr ./a.js
Choose --entry and supply ./a.js as the value. Notice that an error message shows up. (screenshot is given below)
Expected behavior cli-executer supplies the chosen args to runCLI().
Screenshots
Please paste the results of webpack-cli info here, and mention other relevant information
Describe the bug
#1255 brought a better way to handle unknown flags by showing up the available options and asking the user to pick what they required. Everything works well except that it fails to supply the chosen args further up.
What is the current behavior?
cli-executer
won't supply the chosen args since it fails to recognizerunCLI()
as a function.To Reproduce
An interactive prompt shows up with all of the available
cli-flags
if the user makes a typo.Say,
webpack-cli --entyr ./a.js
Choose
--entry
and supply./a.js
as the value. Notice that an error message shows up. (screenshot is given below)Expected behavior
cli-executer
supplies the chosen args torunCLI()
.Screenshots
Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
webpack-cli/packages/webpack-cli/lib/bootstrap.js
Line 59 in c0eb280
webpack-cli/packages/webpack-cli/lib/utils/cli-executer.js
Line 58 in c0eb280
The text was updated successfully, but these errors were encountered: