index.js
/**
 * CLI Parse Options
 * Parses all of the CLI Options
 */
CLI Parse Options
Parses all of the CLI Options
CLI Parse Options Parses all of the CLI Options
function cli_Parse() {
    cli_Parse = function () {};
    program.parse(process.argv);
    let noCommands = program.args.length === 0;
    if (noCommands) {
        program.help();
    }
     Configure CLI output on the default logger
    winston.cli();
    if (program.verbose && program.verbose > 0) {
        switch (program.verbose) {
            case 1:
                winston.level = 'info';
                break;
            case 2:
                winston.level = 'debug';
                break;
            default:
                winston.level = 'debug';
                headless_Mode = false;
                break;
        }
    } else {
        winston.level = 'error';
    }
     Check if authentication is enabled
    if (program.credentials || program.authenticate) {
        should_Authenticate = true;
    }
}
function cli_Parse ( ) { cli_Parse = function ( ) { } ; program . parse ( process . argv ) ; let noCommands = program . args . length === 0 ; if ( noCommands ) { program . help ( ) ; } winston . cli ( ) ; if ( program . verbose && program . verbose > 0 ) { switch ( program . verbose ) { case 1 : winston . level = 'info' ; break ; case 2 : winston . level = 'debug' ; break ; default : winston . level = 'debug' ; headless_Mode = false ; break ; } } else { winston . level = 'error' ; } if ( program . credentials || program . authenticate ) { should_Authenticate = true ; } }
CLI Parse Options
 Parses all of the CLI Options
CLI Parse Options Parses all of the CLI Options
// Only allow cli_Parse to run once // Parse the arguments // Check the program.args // Check if no commands were issued // Display usage // Set up logging // // Configure CLI output on the default logger // // Check if authentication is enabled