@nomiclabs/buidler > ArgumentsParser

Class: ArgumentsParser

Hierarchy

ArgumentsParser

Index

Properties

Methods


Properties

<Static> PARAM_PREFIX

● PARAM_PREFIX: "--" = "--"

Defined in internal/cli/ArgumentsParser.ts:13


Methods

_addBuidlerDefaultArguments

_addBuidlerDefaultArguments(buidlerParamDefinitions: BuidlerParamDefinitions, envVariableArguments: BuidlerArguments, buidlerArguments: Partial<BuidlerArguments>): void

Defined in internal/cli/ArgumentsParser.ts:153

Parameters:

Name Type
buidlerParamDefinitions BuidlerParamDefinitions
envVariableArguments BuidlerArguments
buidlerArguments Partial<BuidlerArguments>

Returns: void


_addTaskDefaultArguments

_addTaskDefaultArguments(taskDefinition: TaskDefinition, taskArguments: TaskArguments): void

Defined in internal/cli/ArgumentsParser.ts:167

Parameters:

Name Type
taskDefinition TaskDefinition
taskArguments TaskArguments

Returns: void


_hasCLAParamNameFormat

_hasCLAParamNameFormat(str: string): boolean

Defined in internal/cli/ArgumentsParser.ts:196

Parameters:

Name Type
str string

Returns: boolean


_isCLAParamName

_isCLAParamName(str: string, paramDefinitions: ParamDefinitionsMap): boolean

Defined in internal/cli/ArgumentsParser.ts:187

Parameters:

Name Type
str string
paramDefinitions ParamDefinitionsMap

Returns: boolean


_parseArgumentAt

_parseArgumentAt(rawCLAs: string[], index: number, paramDefinitions: ParamDefinitionsMap, parsedArguments: TaskArguments): number

Defined in internal/cli/ArgumentsParser.ts:200

Parameters:

Name Type
rawCLAs string[]
index number
paramDefinitions ParamDefinitionsMap
parsedArguments TaskArguments

Returns: number


_parsePositionalParamArgs

_parsePositionalParamArgs(rawPositionalParamArgs: string[], positionalParamDefinitions: Array<ParamDefinition<any>>): TaskArguments

Defined in internal/cli/ArgumentsParser.ts:225

Parameters:

Name Type
rawPositionalParamArgs string[]
positionalParamDefinitions Array<ParamDefinition<any>>

Returns: TaskArguments


_parseTaskParamArguments

_parseTaskParamArguments(taskDefinition: TaskDefinition, rawCLAs: string[]): object

Defined in internal/cli/ArgumentsParser.ts:121

Parameters:

Name Type
taskDefinition TaskDefinition
rawCLAs string[]

Returns: object


parseBuidlerArguments

parseBuidlerArguments(buidlerParamDefinitions: BuidlerParamDefinitions, envVariableArguments: BuidlerArguments, rawCLAs: string[]): object

Defined in internal/cli/ArgumentsParser.ts:41

Parameters:

Name Type
buidlerParamDefinitions BuidlerParamDefinitions
envVariableArguments BuidlerArguments
rawCLAs string[]

Returns: object


parseTaskArguments

parseTaskArguments(taskDefinition: TaskDefinition, rawCLAs: string[]): TaskArguments

Defined in internal/cli/ArgumentsParser.ts:104

Parameters:

Name Type
taskDefinition TaskDefinition
rawCLAs string[]

Returns: TaskArguments


<Static> cLAToParamName

cLAToParamName(cLA: string): string

Defined in internal/cli/ArgumentsParser.ts:25

Parameters:

Name Type
cLA string

Returns: string


<Static> paramNameToCLA

paramNameToCLA(paramName: string): string

Defined in internal/cli/ArgumentsParser.ts:15

Parameters:

Name Type
paramName string

Returns: string