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