Skip to content
  • rswindell's avatar
    6ae79a48
    New modopts.js usage supported: · 6ae79a48
    rswindell authored
    You may now request the value of a single modopts.ini key value (optionally
    specifying a default option value), via:
        optval = load({}, 'modopts.js', 'modname', 'optname');
    or:
        optval = load({}, 'modopts.js', 'modname', 'optname', default_optval);
    
    This usage will return just a single option value rather than an object
    containing properties reflecting all the options in the [modname] section.
    The pre-existing usage is still supported (and preferred in most cases).
    6ae79a48
    New modopts.js usage supported:
    rswindell authored
    You may now request the value of a single modopts.ini key value (optionally
    specifying a default option value), via:
        optval = load({}, 'modopts.js', 'modname', 'optname');
    or:
        optval = load({}, 'modopts.js', 'modname', 'optname', default_optval);
    
    This usage will return just a single option value rather than an object
    containing properties reflecting all the options in the [modname] section.
    The pre-existing usage is still supported (and preferred in most cases).
Loading