Home Download Buy Blog Forum Support

[REQUEST] Forward argument of build command to exec command

[REQUEST] Forward argument of build command to exec command

Postby bizoo on Sun Apr 15, 2012 6:34 pm

Actually the build command take no arguments.
Is it possible to forward the arguments added to build command to the exec command (or the command from target).
So:
Code: Select all
{ "keys": ["shift+f7"], "command": "build", "args": {"task": "test"} }

call exec with a "task" : "test" argument in kwargs.

Thanks to think about it.
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: [REQUEST] Forward argument of build command to exec command

Postby bizoo on Tue Apr 17, 2012 6:12 am

And it would be nice if arguments with the same name as parameters in sublime-build file override them:
Code: Select all
{ "keys": ["shift+f7"], "command": "build", "args": {"working_dir": "d:"} }

use d: as working directory and not the one from the sublime-build file.
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: [REQUEST] Forward argument of build command to exec command

Postby farfromrefuge on Tue Apr 17, 2012 7:37 am

i concur, it would be an awesome addition!
farfromrefuge
 
Posts: 34
Joined: Mon Oct 19, 2009 11:49 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests

cron