UNPKG

get-cli-arg

Version:

Get the value of a CLI argument

12 lines 423 B
/** * Get the value of a CLI argument that is provided via: * --arg * --arg=value * --no-arg * --no-arg=value * @param name the name of the argument to find * @param args the list of the arguments to search, defaults to `process.argv` * @returns the result typecasted to whatever format the value represented */ export default function (name: string, args?: Array<string>): any; //# sourceMappingURL=index.d.ts.map