Skip to content

Misleading "Unknown compiler option '--clean'" when --build not providedΒ #43196

Description

@JoshuaKGoldberg

Bug Report

πŸ”Ž Search Terms

unknown clean build option

πŸ•— Version & Regression Information

  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about the CLI

⏯ Playground Link

N/A

πŸ’» Code

tsc --clean

πŸ™ Actual behavior

tsc --clean
error TS5023: Unknown compiler option '--clean'.

πŸ™‚ Expected behavior

Something indicating the option is known but requires --build?

tsc --clean
error TS5023: Compiler option '--clean' may only be used with '-b'/'--build'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions