Genese complexity report

<- index.d.ts
Methods : 1
Complexity index : 0.6
Cyclomatic complexity : 1
Cognitive complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 10)
0 % Error 0/1 (threshold : 20)
Cyclomatic complexity
100 % Correct 1/1
0 % Warning 0/1 (threshold : 5)
0 % Error 0/1 (threshold : 10)
Methods of index.d.ts
hasFlag Complexity Index 0.6 Cyclomatic complexity 1
                            
                                
            
            Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag.
            
            @param flag - CLI flag to look for. The `--` prefix is optional.
            @param argv - CLI arguments. Default: `process.argv`.
            @returns Whether the flag exists.
            
            @example
            ```
            // $ ts-node foo.ts -f --unicorn --foo=bar -- --rainbow
            
            // foo.ts
            import hasFlag = require('has-flag');
            
            hasFlag('unicorn');
            //=> true
            
            hasFlag('--unicorn');
            //=> true
            
            hasFlag('f');
            //=> true
            
            hasFlag('-f');
            //=> true
            
            hasFlag('foo=bar');
            //=> true
            
            hasFlag('foo');
            //=> false
            
            hasFlag('rainbow');
            //=> false
            ```
            */
            declare function hasFlag(flag: string, argv?: string[]): boolean; // -------------------------------------------------- +0.6 Complexity index (+0.6 atomic)