Skip to main content

Function: parseSomeBenchmarkParameters

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

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

Parameters

NameTypeDescription
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.
argsstring[]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