title: LESS: Including string globalvars in CLI
body: <p>So I'm trying to include a string globalvar on the command line. According to the docs ( <a href="http://lesscss.org/usage/" rel="nofollow">http://lesscss.org/usage/</a> ), it should be straightforward:</p>
  
  <p><code>lessc --global-var="my-background=red"</code></p>
  
  <p>However, if the value is a string (instead of a CSS colour in the example), it needs to be quoted, giving:</p>
  
  <p><code>lessc --global-var="staticbase='static'"</code></p>
  
  <p>But running that against my less file gives me:</p>
  
  <blockquote>
    <p>NameError: variable @staticbase is undefined in /tmp/tmpoRLm7A on line 336, column 133:</p>
    
    <p><code>336 ul.popular {  background: url('@{staticbase}/background.jpg') 0 0 no-repeat; }</code></p>
  </blockquote>
  
  <p>I've tried a variety of ways of escaping the various quotes, but nothing seems to work. The same less file compiles fine using the client-side library, with <code>less.globalVars['staticbase']</code> set.</p>