Skip to content

Inconsistent behavior of webpack --flag --help #1917

@snitin315

Description

@snitin315

Describe the bug

webpack --flag --help shows inconsistent behavior, sometimes it prints help sometimes it considers --help as value for --flag.

What is the current behavior?

To Reproduce

Steps to reproduce the behavior:

Try running -

webpack --stats --help
webpack --mode --help
webpack -hot --help
webpack --entry --help

See inconsistency.

Expected behavior
The behavior should be consistent either print help (recommended) or throw an error/warning.

Screenshots
Screenshot at 2020-10-11 08-11-21

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

Additional context
webpack/webpack.js.org#4051 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions