extractOptionValue

Function for extracting of value by flag. Unlike getOptionValue(), this function changes the passed args, removing the flag with a value.

string
extractOptionValue
(
ref string[] args
,
string flag
,
string altFlag = ""
)

Parameters

args string[]

Command line arguments. Changes while the function is running.

flag string

Parameter with "--".

altFlag string

Synonym for the flat. By default, empty.

Return Value

Type: string

The value of the required parameter.

Meta