19 lines
824 B
TypeScript
Executable File
19 lines
824 B
TypeScript
Executable File
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import * as yargs from 'yargs';
|
|
/**
|
|
* A Yargs middleware that normalizes non Array options when the argument has been provided multiple times.
|
|
*
|
|
* By default, when an option is non array and it is provided multiple times in the command line, yargs
|
|
* will not override it's value but instead it will be changed to an array unless `duplicate-arguments-array` is disabled.
|
|
* But this option also have an effect on real array options which isn't desired.
|
|
*
|
|
* See: https://github.com/yargs/yargs-parser/pull/163#issuecomment-516566614
|
|
*/
|
|
export declare function normalizeOptionsMiddleware(args: yargs.Arguments): void;
|