nl_tokens: Sort arguments so that app . cli . process executes commands in the order specified .
pl_tokens: function sortArgs ( app , argv , options ) { options = options || [ ] ; var first = options . first || [ ] ; var last = options . last || [ ] ; var cliKeys = [ ] ; if ( app . cli && app . cli . keys ) { cliKeys = app . cli . keys ; } var keys = utils . union ( first , cliKeys , Object . keys ( argv ) ) ; keys = utils . diff ( keys , last ) ; keys = utils . union ( keys , last ) ; var len = keys . length ; var idx = - 1 ; var res = { } ; while ( ++ idx < len ) { var key = <mask> [ idx ] ; if ( argv . hasOwnProperty ( key ) ) { res [ key ] = argv [ key ] ; } } return res ; }