Skip to main content

Function: parseSomeBenchmarkParameters()

parseSomeBenchmarkParameters(params: BenchmarkParameters, usage?: string, args?: string[]): string[]

Parses benchmark parameters from command line arguments and returns an array of unrecognized arguments.

Parameters

ParameterTypeDescription
paramsBenchmarkParametersInput/output argument. Contains default values of parameters

that will be overridden by command line arguments.
usage?stringUsage string that will be printed when -h or --help is

specified on the command line. The specified usage is followed

by description of supported benchmark and solver parameters.
args?string[]Command line arguments to parse. When not specified,

process.argv.slice(2) is used.

Returns

string[]

An array of unrecognized arguments.

Functionally, this function is the same as parseBenchmarkParameters, however does not exit the application in case of an unrecognized argument. Instead it returns an array of unrecognized arguments.

See