Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli executer fails to invoke runCLI() #1901

Closed
jamesgeorge007 opened this issue Oct 9, 2020 · 1 comment · Fixed by #1904
Closed

cli executer fails to invoke runCLI() #1901

jamesgeorge007 opened this issue Oct 9, 2020 · 1 comment · Fixed by #1904
Assignees
Labels

Comments

@jamesgeorge007
Copy link
Member

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.

Screenshot 2020-10-10 at 12 23 31 AM

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

Screenshot 2020-10-10 at 12 13 47 AM

Please paste the results of webpack-cli info here, and mention other relevant information

Additional context

@alexander-akait
Copy link
Member

Yep, feel free to send a fix 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants