Skip to content

Commit 1f6ff2f

Browse files
committed
Show --install-extension in help menu
Also add --force so extensions can be updated without prompts. Closes #1392.
1 parent 04542c9 commit 1f6ff2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/node/cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface Args extends VsArgs {
3232
readonly port?: number
3333
readonly socket?: string
3434
readonly version?: boolean
35+
readonly force?: boolean
3536
readonly "list-extensions"?: boolean
3637
readonly "install-extension"?: string[]
3738
readonly "uninstall-extension"?: string[]
@@ -100,7 +101,8 @@ const options: Options<Required<Args>> = {
100101
"extra-extensions-dir": { type: "string[]", path: true },
101102
"extra-builtin-extensions-dir": { type: "string[]", path: true },
102103
"list-extensions": { type: "boolean" },
103-
"install-extension": { type: "string[]" },
104+
force: { type: "boolean" },
105+
"install-extension": { type: "string[]", description: "Install or update an extension by id or vsix." },
104106
"uninstall-extension": { type: "string[]" },
105107

106108
locale: { type: "string" },

0 commit comments

Comments
 (0)