Skip to content

Recognize '-?' / '--?' in tsc#8787

Merged
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:cmdLineHelp
May 24, 2016
Merged

Recognize '-?' / '--?' in tsc#8787
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:cmdLineHelp

Conversation

@RyanCavanaugh

Copy link
Copy Markdown
Member

Once a week this happens to me

> tsc --?
error TS5023: Unknown compiler option '?'.

😡

> tsc --help

Comment thread src/compiler/commandLineParser.ts Outdated
{
name: "help",
shortName: "?",
type: "boolean",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the experimental. not having a description is sufficient.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, didn't know that

@mhegazy

mhegazy commented May 24, 2016

Copy link
Copy Markdown
Contributor

👍

description: Diagnostics.Print_this_message,
},
{
name: "help",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if shortName was a string | string[]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we'd have more code later for the sake of exactly one thing?

@RyanCavanaugh RyanCavanaugh merged commit 50529ac into microsoft:master May 24, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants