CRAP Complexity Coverage Location
12.00 3 0/8 (0.00%) command/compute-crap.command.ts (L64 - L76)
    public parseVerbosity(verbosity: string): string[] {
        const logLevels = this.getLogLevels();
        const index = logLevels.indexOf(verbosity);
        if (index === -1) {
            throw new Error(`Invalid log level: ${verbosity}. Valid log levels are: ${logLevels.join(", ")}.`);
        }

        if (verbosity === "silent") {
            return [];
        }

        return logLevels.reverse().slice(logLevels.indexOf(verbosity));
    }