From 9d0dcf3c44ff59171044c6fcdd3538da83e0cbc8 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 26 May 2020 23:20:12 -0400 Subject: [PATCH] Fix extension install path for CLI Closes #1713 --- src/node/entry.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node/entry.ts b/src/node/entry.ts index 37f54a51..69d32ca8 100644 --- a/src/node/entry.ts +++ b/src/node/entry.ts @@ -43,8 +43,6 @@ const main = async (cliArgs: Args): Promise => { } } - args = await setDefaults(args) - logger.info(`Using user-data-dir ${humanPath(args["user-data-dir"])}`) logger.trace(`Using extensions-dir ${humanPath(args["extensions-dir"])}`) @@ -129,9 +127,11 @@ const main = async (cliArgs: Args): Promise => { } async function entry(): Promise { - const tryParse = (): Args => { + const tryParse = async (): Promise => { try { - return parse(process.argv.slice(2)) + let args = parse(process.argv.slice(2)) + args = await setDefaults(args) + return args } catch (error) { console.error(error.message) process.exit(1)