lib/utils/command.js
function optionsToShellArgs(options) {
    var result = [];

    for (var key in options) {
        var value = options[key];

        if (value === null || value === undefined || value === false) {
            continue;
        }

        if (is.bool(value)) {
            result.push(key);
        } else {
            result.push(key + '=' + escapeShellArg(value));
        }
    }

    return result.join(' ');
}
function optionsToShellArgs(options) {
    var result = [];

    for (var key in options) {
        var value = options[key];

        if (value === null || value === undefined || value === false) {
            continue;
        }

        if (is.bool(value)) {
            result.push(key);
        } else {
            result.push(key + '=' + escapeShellArg(value));
        }
    }

    return result.join(' ');
}
function optionsToShellArgs ( options ) { var result = [ ] ; for ( var key in options ) { var value = options [ key ] ; if ( value === null || value === undefined || value === false ) { continue ; } if ( is . bool ( value ) ) { result . push ( key ) ; } else { result . push ( key + '=' + escapeShellArg ( value ) ) ; } } return result . join ( ' ' ) ; }
Transform a map of options into a command line arguments string

@param {Object} options
@return {String}
Transform a map of options into a command line arguments string