{ var compo = grunt.option('cx'); if(compo) { grunt.config.set('component', compo); } else { grunt.log.writeln("no component specified. This might not work as you were hoping"); grunt.log.writeln("try again like this: grunt tc --cx=myComponent"); return false; } grunt.task.run('testComponent'); }); }; grunt-configs/alias_tasks.js