lib/cog.js
function getOption(name) {
        var ret = getConfig('options.' + name);
        if (ret === undefined) {
            var framework = configuredFramework();
            if (db.frameworks.options[framework] && (name in db.frameworks.options[framework])) {
                ret = db.frameworks.options[framework][name];
            } else if (name in db.frameworks.options.all) {
                ret = db.frameworks.options.all[name];
            }
        }

        if (typeof(ret) === 'function') {
            ret = ret();
        }

        return ret;
    }
function getOption(name) {
        var ret = getConfig('options.' + name);
        if (ret === undefined) {
            var framework = configuredFramework();
            if (db.frameworks.options[framework] && (name in db.frameworks.options[framework])) {
                ret = db.frameworks.options[framework][name];
            } else if (name in db.frameworks.options.all) {
                ret = db.frameworks.options.all[name];
            }
        }

        if (typeof(ret) === 'function') {
            ret = ret();
        }

        return ret;
    }
function getOption ( name ) { var ret = getConfig ( 'options.' + name ) ; if ( ret === undefined ) { var framework = configuredFramework ( ) ; if ( db . frameworks . options [ framework ] && ( name in db . frameworks . options [ framework ] ) ) { ret = db . frameworks . options [ framework ] [ name ] ; } else if ( name in db . frameworks . options . all ) { ret = db . frameworks . options . all [ name ] ; } } if ( typeof ( ret ) === 'function' ) { ret = ret ( ) ; } return ret ; }
Get the value of a configuration flag.
Get the value of a configuration flag .