title: How to pass a variable as an argument to a CasperJS script through the command line?
body: <p>I'm using PhantomJs, CasperJs, and Js in a js file ran through the cmd.</p>
  
  <p>Imagine we had two files(test1.js, and test2.js). Both files have a url/site variable that directs the test to a particular address. Everytime an environment changed or the target location changed, we would need to update this variable.</p>
  
  <p>To avoid having to update the files, I'd like to pass the values through the command line, as to where to test this.</p>
  
  <p>Is there a way to declare the string variable through the cmd as you run the file?</p>
  
  <p>E.g.:</p>
  
  <pre><code>casperjs test.js "var site='http://google.com';"
  </code></pre>