File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ include __DIR__.'/../scss.inc.php';
88use Leafo \ScssPhp \Compiler ;
99use Leafo \ScssPhp \Parser ;
1010
11- $ opts = getopt ('hvTf : ' , array ('help ' , 'version ' ));
11+ $ opts = getopt ('hvTi:f : ' , array ('help ' , 'version ' ));
1212
1313function has () {
1414 global $ opts ;
@@ -34,6 +34,7 @@ Options include:
3434 -v, --version Print the version
3535 -f=format Set the output format (compressed, crunched, expanded, or nested)
3636 -T Dump formatted parse tree
37+ -i=path Set import path
3738
3839EOT ;
3940 exit ($ HELP );
@@ -59,6 +60,10 @@ if (has("T")) {
5960
6061$ scss = new Compiler ();
6162
63+ if (has ("i " )) {
64+ $ scss ->addImportPath ($ opts ["i " ]);
65+ }
66+
6267if (has ("f " )) {
6368 $ scss ->setFormatter ('Leafo \\ScssPhp \\Formatter \\' . ucfirst ($ opts ["f " ]));
6469}
You can’t perform that action at this time.
0 commit comments