Is it possible to pass multiple cmdline arguments to Cakefile and capture these values ββin an array? For example, something like this:
option '', '--compilation-level [LEVEL]', 'Description...' task "build", "compile js", (options)-> compilationLevels = options['compilation-level'] || ['DEFAULT'] if compilationLevels.length >= 2 console.log 'multiple compiles' else console.log 'just one compile'
Then run w / cake --compilation-level ADVANCED_OPTIMIZATIONS --compilation-level SIMPLE_OPTIMIZATIONS build
If this is not possible, suggestions on the most optimal way to achieve this goal will be very useful :)
source share