lib/extern/optparse/lib/optparse.js
function spaces(arg1, arg2) {
    var l, builder = [];
    if(arg1.constructor === Number) {
        l = arg1;
    } else {
        if(arg1.length == arg2) return arg1;
        l = arg2 - arg1.length;
        builder.push(arg1);
    }
    while(l-- > 0) builder.push(' ');
    return builder.join('');
}
function spaces(arg1, arg2) {
    var l, builder = [];
    if(arg1.constructor === Number) {
        l = arg1;
    } else {
        if(arg1.length == arg2) return arg1;
        l = arg2 - arg1.length;
        builder.push(arg1);
    }
    while(l-- > 0) builder.push(' ');
    return builder.join('');
}
function spaces ( arg1 , arg2 ) { var l , builder = [ ] ; if ( arg1 . constructor === Number ) { l = arg1 ; } else { if ( arg1 . length == arg2 ) return arg1 ; l = arg2 - arg1 . length ; builder . push ( arg1 ) ; } while ( l -- > 0 ) builder . push ( ' ' ) ; return builder . join ( '' ) ; }
Appends spaces to match specified number of chars
Appends spaces to match specified number of chars