Skip to content

Commit 8255457

Browse files
committed
Fix extension install path for CLI
Closes #1713
1 parent 3140a0c commit 8255457

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node/entry.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ const main = async (cliArgs: Args): Promise<void> => {
4343
}
4444
}
4545

46-
args = await setDefaults(args)
47-
4846
logger.info(`Using user-data-dir ${humanPath(args["user-data-dir"])}`)
4947

5048
logger.trace(`Using extensions-dir ${humanPath(args["extensions-dir"])}`)
@@ -131,7 +129,9 @@ const main = async (cliArgs: Args): Promise<void> => {
131129
async function entry(): Promise<void> {
132130
const tryParse = (): Args => {
133131
try {
134-
return parse(process.argv.slice(2))
132+
let args = parse(process.argv.slice(2))
133+
args = await setDefaults(args)
134+
return args
135135
} catch (error) {
136136
console.error(error.message)
137137
process.exit(1)

0 commit comments

Comments
 (0)