Skip to content

VS Code ignores any unknown command line options instead of showing an error #58630

@segevfiner

Description

@segevfiner
  • VSCode Version: 1.27.2
  • OS Version: Windows 10.0.17134.285 x64

Steps to Reproduce:

  1. Run code --foo bar
  2. VS Code launches successfully.

I'd expect giving unknown options to error out so as to catch typos, unsupported options, and what not. To do this we probably need to use the unknown option for the minimist parser at src/vs/platform/environment/node/argv.ts. I guess it should print an error and process.exit(2).

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityworkbench-cliVS Code Command line issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions