Describe the bug
version flag doesn't care about other arguments supplied at the same time.
What is the current behavior?

To Reproduce
Steps to reproduce the behavior:
webpack --version --abc
Expected behavior
Should throw a warning fo invalid args.
Please paste the results of webpack-cli info here, and mention other relevant information
Additional context
Looking into it. Open for discussion
Should output an error like do other cli (exit code - 2), for example eslint do:
Invalid option '--abc'.
Sounds good. I will work on it.
Same is the case with --help flag, take on both of them together.
What happens in case of multiple commands? Which takes precedence?
@anshumanv Can you provide some examples?
webpack-cli version init or webpack-cli init version
It should output the version of init as well. #1363
Yep that would be good 馃憤
I think json flag also doesn't care about any other flag
Most helpful comment
Same is the case with
--helpflag, take on both of them together.