1
>
/*---------------------------------------------------------------------------------------------
argvHelper.ts
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
>
6
>
import assert from 'assert';
7
>
import { dirname, resolve } from '../../../base/common/path.js';
8
>
import { IProcessEnvironment, isWindows } from '../../../base/common/platform.js';
9
>
import { localize } from '../../../nls.js';
10
>
import { NativeParsedArgs } from '../common/argv.js';
11
>
import { ErrorReporter, NATIVE_CLI_COMMANDS, OPTIONS, parseArgs } from './argv.js';
12
>
13
function parseAndValidate(cmdLineArgs: string[], reportWarnings: boolean): NativeParsedArgs {
14
const onMultipleValues = (id: string, val: string) => {