API reference > @kontsedal/olas-codemod > main
main() function
The CLI. Returns the exit code: 0 when the run finished, TODOs or not; 1 for a usage error or a project with no source files.
Signature:
typescript
export declare function main(argv: readonly string[], io?: CliIO): number;Parameters
Parameter | Type | Description |
|---|---|---|
argv | readonly string[] | |
io | (Optional) |
Returns:
number