src/config/args.ts
Function parseArgs
has 57 lines of code (exceeds 40 allowed). Consider refactoring. Open
Open
export async function parseArgs(args: Array<string>): Promise<ParsedArgs> {
let mode = Commands.UNKNOWN;
const parser = yargs(args)
.usage(`Usage: ${VERSION_INFO.package.name} <mode> [options]`)