Skip to content

tsc --init --help generates foreign compilerOptions: { help: true } #50627

@amitdahan

Description

@amitdahan

Bug Report

🔎 Search Terms

  • init
  • --init
  • --help

🕗 Version & Regression Information

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

⏯ Playground Link

(Issue is with tsc --init so I'm no sure playground / bench is relevant here)

💻 Code

# the following generates `help: true` in `compilerOptions`
tsc --init --help

# while this works fine:
tsc --init --watch

🙁 Actual behavior

tsconfig.json is generated with { compilerOptions: { help: true } }.

🙂 Expected behavior

--help is ignored, exactly like --watch or -w.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions