Skip to content

[ENHANCEMENT]: Prettify err in case the supplied flag(s) is/are unknown #1046

@anshumanv

Description

@anshumanv

Describe the bug
Presently thrown err are simply logged in case of unknown flag, maybe we can present it nicely and show a message to use help flag for proper usage

What is the current behavior?
Stacktrace is printed in case of unknown flag.

To Reproduce
Invoke cli with an unknown flag

Expected behavior
concise message of supplying an unknown flag should be displayed. something like -
image

Screenshots
If applicable, add screenshots to help explain your problem.
image

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

Additional context
Looking for feedback on this before starting work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions