Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1022 Bytes

ConfigureArguments.md

File metadata and controls

33 lines (18 loc) · 1022 Bytes

@black-flag/coreDocs


@black-flag/core / index / ConfigureArguments

Type Alias: ConfigureArguments()<CustomContext>

ConfigureArguments<CustomContext>: (rawArgv, context) => Promisable<typeof process.argv>

This function is called once towards the beginning of the execution of PreExecutionContext::execute and should return a process.argv-like array.

This is where yargs middleware and other argument pre-processing can be implemented.

Type Parameters

CustomContext extends ExecutionContext = ExecutionContext

Parameters

rawArgv: typeof process.argv

context: CustomContext

Returns

Promisable<typeof process.argv>

Defined in

types/configure.ts:48