nl_tokens: Convert a pair of key / value to an array if the value is true only the key is kept Example : toParameter ( lineBreak 2 ) // = > [ -- line - break 2 ] toParameter ( preserveComments true ) // = > [ -- preserve - comments ]
pl_tokens: function toParameter ( val , <mask> ) { var str = '--' + key . replace ( / ([A-Z]) / g , function ( a ) { return '-' + a . toLowerCase ( ) ; } ) ; return ( val === true ) ? [ str ] : [ str , val ] ; }