Home Download Buy Blog Forum Support

How to use --command with args

How to use --command with args

Postby agriffis on Sun Feb 19, 2012 4:30 pm

This works:
Code: Select all
st2 --command find_next


because the command doesn't require args. I'd like to do this:
Code: Select all
st2 --command set_setting setting=theme value='Soda Light.sublime-theme'
but I can't seem to find a syntax for --command that allows me to specify args.

Anybody done it?
agriffis
 
Posts: 4
Joined: Sun Feb 19, 2012 4:26 pm

Re: How to use --command with args

Postby jps on Mon Feb 20, 2012 4:01 am

In bash, you should be able to do:
Code: Select all
subl --command 'set_setting {"setting": "theme", "value": "Soda Light.sublime-theme"}'
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: How to use --command with args

Postby agriffis on Fri Feb 24, 2012 12:50 pm

Hi Jon, thanks for the reply. Sorry I didn't see it earlier. Your suggestion doesn't seem to be working for me. I'm in bash, and the quoting is fine. The command runs silently and exits with zero status but doesn't have any effect.
agriffis
 
Posts: 4
Joined: Sun Feb 19, 2012 4:26 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 23 guests