check for help arg (#170958)

This commit is contained in:
Sandeep Somavarapu
2023-01-10 12:52:49 +01:00
committed by GitHub
parent 0124c36559
commit e6b39b8368

View File

@@ -14,6 +14,7 @@ async function main() {
const args = [...process.argv];
if (args.indexOf('--help') === -1 && args.indexOf('-h') === -1) {
// get build arg from args
let buildArgIndex = args.indexOf('--build');
buildArgIndex = buildArgIndex === -1 ? args.indexOf('-b') : buildArgIndex;
@@ -29,6 +30,7 @@ async function main() {
args.push(VSCODE_FOLDER);
args.push('--file');
args.push(path.join(VSCODE_FOLDER, 'package.json'));
}
await perf(args);
}