function parseOpts(argv) {
    var lastOpt, parsed, opts = {}
    argv.forEach(function(arg){
        parsed = rOption.exec(arg)
        if (parsed) {
            lastOpt = parsed[1]
            opts[lastOpt] = true
            return
        }
        opts[lastOpt] = arg
    })
    return opts
}
function parseOpts(argv) {
    var lastOpt, parsed, opts = {}
    argv.forEach(function(arg){
        parsed = rOption.exec(arg)
        if (parsed) {
            lastOpt = parsed[1]
            opts[lastOpt] = true
            return
        }
        opts[lastOpt] = arg
    })
    return opts
}
function parseOpts ( argv ) { var lastOpt , parsed , opts = { } argv . forEach ( function ( arg ) { parsed = rOption . exec ( arg ) if ( parsed ) { lastOpt = parsed [ 1 ] opts [ lastOpt ] = true return } opts [ lastOpt ] = arg } ) return opts }
extract cli options
extract cli options