镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

tsc chokes on switches in --example=VALUE format #6758

Closed

Description

Every now and then I pick up tsc and the following type of thing happens:

$ tsc --module=commonjs ./foo.ts
error TS5023: Unknown compiler option 'module=commonjs'.
$ # arrgh!
$ tsc --module commonjs ./foo.ts
$

Activity

  1. DanielRosenwasser commented on Jan 30, 2016

    @DanielRosenwasser
    Member

    I'd be okay with this if the complexity of the command line parser didn't get too crazy. Mohamed Hegazy (@mhegazy) Ron Buckton (@rbuckton) Ryan Cavanaugh (@RyanCavanaugh) any thoughts?

  2. ahejlsberg commented on Jan 30, 2016

    @ahejlsberg
    Member

    I'm not super crazy about this idea. One problem is that that it only works if there are no blanks before or after the =. Another is that it doesn't work well for boolean options (at least not with the suggested implementation). For example, --declaration=true would become --declaration followed by true, and we'd go look for a file named true.ts.

  3. added
    DeclinedThe issue was declined as something which matches the TypeScript vision
    and removed on Mar 15, 2016
  4. RyanCavanaugh commented on Mar 15, 2016

    @RyanCavanaugh
    Member

    Suggestions from ghosts are too spooky. If anyone would like this, please log a new issue.

  5. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions