Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grunt : argument with colon

Tags:

gruntjs

colon

I'd like to pass an url to a grunt task. Unfortunately the separator used by grunt is the colon which is also present in an url.

So how could I pass a url as argument to a grunt task ?

like image 932
Matthieu Riegler Avatar asked Sep 17 '14 08:09

Matthieu Riegler


1 Answers

I went for the grunt.option('optionName') way.

from the command line it's called like following :

grunt myTask --optionName=httpmyUrl 
like image 127
Matthieu Riegler Avatar answered Oct 11 '22 11:10

Matthieu Riegler