Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/mcp/src/options.ts
4772 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
import minimist from 'minimist';
6
7
const [, , ...args] = process.argv;
8
export const opts = minimist(args, {
9
string: [
10
'browser',
11
'build',
12
'stable-build',
13
'wait-time',
14
'test-repo',
15
'electronArgs'
16
],
17
boolean: [
18
'verbose',
19
'remote',
20
'web',
21
'headless',
22
'video',
23
'autostart'
24
],
25
default: {
26
verbose: false
27
}
28
}) as {
29
verbose?: boolean;
30
remote?: boolean;
31
headless?: boolean;
32
web?: boolean;
33
build?: string;
34
'stable-build'?: string;
35
browser?: 'chromium' | 'webkit' | 'firefox' | 'chromium-msedge' | 'chromium-chrome' | undefined;
36
electronArgs?: string;
37
video?: boolean;
38
autostart?: boolean;
39
};
40
41