samples/cordova/video_chat/platforms/ios/cordova/lib/run.js
function filterSupportedArgs(args) {
        var filtered = [];
        var sargs = ['--device', '--emulator', '--nobuild', '--list', '--target', '--debug', '--release'];
        var re = new RegExp(sargs.join('|'));

        args.forEach(function(element) {
            // supported args not found, we add
            // we do a regex search because --target can be "--target=XXX"
            if (element.search(re) == -1) {
                filtered.push(element);
            }
        }, this);

        return filtered;
}
function filterSupportedArgs(args) {
        var filtered = [];
        var sargs = ['--device', '--emulator', '--nobuild', '--list', '--target', '--debug', '--release'];
        var re = new RegExp(sargs.join('|'));

        args.forEach(function(element) {
            // supported args not found, we add
            // we do a regex search because --target can be "--target=XXX"
            if (element.search(re) == -1) {
                filtered.push(element);
            }
        }, this);

        return filtered;
}
function filterSupportedArgs ( args ) { var filtered = [ ] ; var sargs = [ '--device' , '--emulator' , '--nobuild' , '--list' , '--target' , '--debug' , '--release' ] ; var re = new RegExp ( sargs . join ( '|' ) ) ; args . forEach ( function ( element ) { // supported args not found, we add // we do a regex search because --target can be "--target=XXX" if ( element . search ( re ) == - 1 ) { filtered . push ( element ) ; } } , this ) ; return filtered ; }
Filters the args array and removes supported args for the 'run' command.

@return {Array} array with unsupported args for the 'run' command
Filters the args array and removes supported args for the run command .