Grunt - Command Line Arguments, not working
问题 I am using command line options in my grunt script: http://kurst.co.uk/transfer/Gruntfile.js However the command grunt --vers:0.0.1 always returns 'undefined' when I try to get the option: var version = grunt.option('vers') || ''; Can you help me get this working ? I tried different (CLI) commands: grunt vers:asd grunt -vers:asd grunt vers=asd as well as using : grunt.option('-vers'); grunt.option('--vers'); But no luck so far. Hopefully I am missing something simple. This is my package.js