Skip to content

CLI Allows Single Dashes for Multi-Character Flags #492

Closed as not planned
Closed as not planned
@LukeAbby

Description

@LukeAbby

Because of Go conventions in the builtin flag package a single dash is always allowed. For example tsgo -showConfig.

This also shows up in tsgo -help which will print:

Usage of tsgo:
  -listFiles
        Print all of the files read during the compilation.
  -listFilesOnly
        Print names of files that are part of the compilation and then stop processing.
  -noCheck
        Disable full type checking (only critical parse and emit errors will be reported).
  -noEmit
        Disable emitting files from a compilation.
  -noLib
        Disable including any library files, including the default lib.d.ts.
  -outDir string
        Specify an output folder for all emitted files.
  -p string
        Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
  -pprofDir string
        Generate pprof CPU/memory profiles to the given directory.
  -pretty
        Enable color and formatting in TypeScript's output to make compiler errors easier to read. (default true)
  -printTypes
        Print types defined in 'main.ts'.
  -project string
        Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
  -q    Do not print diagnostics.
  -quiet
        Do not print diagnostics.
  -showConfig
        Print the final configuration instead of building.
  -singleThreaded
        Run in single threaded mode.
  -skipLibCheck
        Skip type checking all .d.ts files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions