From 1f6ff2f7631e0aa93233a54c2eb8b5baf46c87f3 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 5 Mar 2020 10:39:42 -0600 Subject: [PATCH] Show --install-extension in help menu Also add --force so extensions can be updated without prompts. Closes #1392. --- src/node/cli.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node/cli.ts b/src/node/cli.ts index 7b01486a1..584286096 100644 --- a/src/node/cli.ts +++ b/src/node/cli.ts @@ -32,6 +32,7 @@ export interface Args extends VsArgs { readonly port?: number readonly socket?: string readonly version?: boolean + readonly force?: boolean readonly "list-extensions"?: boolean readonly "install-extension"?: string[] readonly "uninstall-extension"?: string[] @@ -100,7 +101,8 @@ const options: Options> = { "extra-extensions-dir": { type: "string[]", path: true }, "extra-builtin-extensions-dir": { type: "string[]", path: true }, "list-extensions": { type: "boolean" }, - "install-extension": { type: "string[]" }, + force: { type: "boolean" }, + "install-extension": { type: "string[]", description: "Install or update an extension by id or vsix." }, "uninstall-extension": { type: "string[]" }, locale: { type: "string" },