src/cli.js
function execute(args) {
    try {
        const currentOptions = options.parse(args)
        return executeOptions(currentOptions)
    } catch (error) {
        console.error(error.message)
        return 1
    }
}
function execute(args) {
    try {
        const currentOptions = options.parse(args)
        return executeOptions(currentOptions)
    } catch (error) {
        console.error(error.message)
        return 1
    }
}
function execute ( args ) { try { const currentOptions = options . parse ( args ) return executeOptions ( currentOptions ) } catch ( error ) { console . error ( error . message ) return 1 } }
Executes the CLI based on an array of arguments that is passed in.
@param {string|Array|Object} args The arguments to process.
@returns {int} The exit code for the operation.
Executes the CLI based on an array of arguments that is passed in .